diff --git a/common/dialer/dialer.go b/common/dialer/dialer.go index 00ebbeac..b93b7096 100644 --- a/common/dialer/dialer.go +++ b/common/dialer/dialer.go @@ -52,7 +52,7 @@ func NewWithOptions(options Options) (N.Dialer, error) { return nil, err } } - if options.RemoteIsDomain && (dialOptions.Detour == "" || options.ResolverOnDetour) { + if options.RemoteIsDomain && (dialOptions.Detour == "" || options.ResolverOnDetour || dialOptions.DomainResolver != nil && dialOptions.DomainResolver.Server != "") { networkManager := service.FromContext[adapter.NetworkManager](options.Context) dnsTransport := service.FromContext[adapter.DNSTransportManager](options.Context) var defaultOptions adapter.NetworkOptions