refactor: Outbound domain resolver

This commit is contained in:
世界 committed 2025-07-08 13:12:14 +08:00
1 parent 3016338e34
commit 988ac62a1b
33 files changed
+392 -167

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ type Outbound struct {
}
func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.HTTPOutboundOptions) (adapter.Outbound, error) {
outboundDialer, err := dialer.New(ctx, options.DialerOptions)
outboundDialer, err := dialer.New(ctx, options.DialerOptions, options.ServerIsDomain())
if err != nil {
return nil, err
}