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"