From dae5a1bd5b9393b8493ee7908150077d6772a37c Mon Sep 17 00:00:00 2001 From: Gerhard Tan Date: Mon, 27 Jun 2022 16:31:18 +0800 Subject: [PATCH] Adjust package structure of frps --- cmd/frps/main.go | 3 ++- cmd/frps/{ => sub}/root.go | 2 +- cmd/frps/{ => sub}/verify.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename cmd/frps/{ => sub}/root.go (99%) rename cmd/frps/{ => sub}/verify.go (99%) diff --git a/cmd/frps/main.go b/cmd/frps/main.go index 56477aad..53744385 100644 --- a/cmd/frps/main.go +++ b/cmd/frps/main.go @@ -15,6 +15,7 @@ package main import ( + "github.com/fatedier/frp/cmd/frps/sub" "math/rand" "time" @@ -28,5 +29,5 @@ func main() { crypto.DefaultSalt = "frp" rand.Seed(time.Now().UnixNano()) - Execute() + sub.Execute() } diff --git a/cmd/frps/root.go b/cmd/frps/sub/root.go similarity index 99% rename from cmd/frps/root.go rename to cmd/frps/sub/root.go index d31944ac..717604c4 100644 --- a/cmd/frps/root.go +++ b/cmd/frps/sub/root.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package main +package sub import ( "fmt" diff --git a/cmd/frps/verify.go b/cmd/frps/sub/verify.go similarity index 99% rename from cmd/frps/verify.go rename to cmd/frps/sub/verify.go index 35b2acdf..655a8cd3 100644 --- a/cmd/frps/verify.go +++ b/cmd/frps/sub/verify.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package main +package sub import ( "fmt"