refactor: Outbound domain resolver

This commit is contained in:
世界
2025-07-08 13:12:14 +08:00
parent 3016338e34
commit 988ac62a1b
33 changed files with 392 additions and 167 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ type Outbound struct {
}
func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TrojanOutboundOptions) (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
}