feat: ent ORM, admin UI, client auth, Fyne GUI, Windows/MSI packaging
This commit is contained in:
@@ -49,6 +49,7 @@ import (
|
||||
"github.com/fatedier/frp/pkg/util/version"
|
||||
"github.com/fatedier/frp/pkg/util/vhost"
|
||||
"github.com/fatedier/frp/pkg/util/xlog"
|
||||
"github.com/fatedier/frp/server/admin"
|
||||
"github.com/fatedier/frp/server/controller"
|
||||
"github.com/fatedier/frp/server/group"
|
||||
"github.com/fatedier/frp/server/metrics"
|
||||
@@ -127,6 +128,9 @@ type Service struct {
|
||||
|
||||
cfg *v1.ServerConfig
|
||||
|
||||
// admin web handler
|
||||
adminHandler *admin.Handler
|
||||
|
||||
// service context
|
||||
ctx context.Context
|
||||
// call cancel to stop service
|
||||
@@ -180,6 +184,7 @@ func NewService(cfg *v1.ServerConfig) (*Service, error) {
|
||||
ctx: context.Background(),
|
||||
}
|
||||
if webServer != nil {
|
||||
svr.adminHandler = admin.NewHandler()
|
||||
webServer.RouteRegister(svr.registerRouteHandlers)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user