Fix domain resolver on direct outbound

This commit is contained in:
世界
2025-02-26 08:00:09 +08:00
parent 96dc1410fb
commit ebcceecb2b
2 changed files with 3 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
if options.Detour != "" {
return nil, E.New("`detour` is not supported in direct context")
}
outboundDialer, err := dialer.New(ctx, options.DialerOptions, false)
outboundDialer, err := dialer.New(ctx, options.DialerOptions, true)
if err != nil {
return nil, err
}