Fix router

This commit is contained in:
世界
2022-11-28 13:10:56 +08:00
parent 8dcafa5b33
commit a92412ecac
2 changed files with 9 additions and 10 deletions

3
box.go
View File

@@ -97,8 +97,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
router, err := route.NewRouter(
ctx,
logFactory.NewLogger("router"),
logFactory.NewLogger("dns"),
logFactory,
common.PtrValueOrDefault(options.Route),
common.PtrValueOrDefault(options.DNS),
options.Inbounds,