diff --git a/cmd/frps/root.go b/cmd/frps/root.go index 4ab1edf..fd6cdbd 100644 --- a/cmd/frps/root.go +++ b/cmd/frps/root.go @@ -203,7 +203,6 @@ func runServer(cfg config.ServerCommonConf) (err error) { return err } log.Info("Start frps success") - server.ServerService = svr svr.Run() return } diff --git a/server/service.go b/server/service.go index 2d16a2b..2c056b0 100644 --- a/server/service.go +++ b/server/service.go @@ -51,8 +51,6 @@ const ( connReadTimeout time.Duration = 10 * time.Second ) -var ServerService *Service - // Server service type Service struct { // Dispatch connections to different handlers listen on same port