Merge dialer options

This commit is contained in:
世界
2022-09-03 12:55:10 +08:00
parent e290aaaf5c
commit 273652ae23
25 changed files with 31 additions and 44 deletions

View File

@@ -64,7 +64,7 @@ func NewWireGuard(ctx context.Context, router adapter.Router, logger log.Context
},
ctx: ctx,
serverAddr: options.ServerOptions.Build(),
dialer: dialer.NewOutbound(router, options.OutboundDialerOptions),
dialer: dialer.New(router, options.DialerOptions),
}
var endpointIp netip.Addr
if !outbound.serverAddr.IsFqdn() {