fix: instantiate user_manager service in box.go
This commit is contained in:
parent
4b9fabd1c8
commit
5944da88d4
1 changed files with 12 additions and 0 deletions
12
box.go
12
box.go
|
|
@ -427,6 +427,18 @@ func New(options Options) (*Box, error) {
|
|||
service.MustRegister[adapter.V2RayServer](ctx, v2rayServer)
|
||||
}
|
||||
}
|
||||
if experimentalOptions.UserManager != nil {
|
||||
err = serviceManager.Create(
|
||||
ctx,
|
||||
logFactory.NewLogger("service/user_manager"),
|
||||
"user_manager",
|
||||
C.TypeUserManager,
|
||||
*experimentalOptions.UserManager,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, E.Cause(err, "create user_manager")
|
||||
}
|
||||
}
|
||||
if ntpOptions.Enabled {
|
||||
ntpDialer, err := dialer.New(ctx, ntpOptions.DialerOptions, ntpOptions.ServerIsDomain())
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue