Fix system dns is ignored if bootstrap resolver is empty. Fix default bootstrap resolver is not used if bootstrap resolver is empty.

Fix system dns is ignored if bootstrap resolver is empty.
Fix default bootstrap resolver is not used if bootstrap resolver is empty.
This commit is contained in:
ACE 2025-02-10 02:02:06 +02:00 committed by GitHub
parent b2e74ca1d0
commit 95f37cbfdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,9 +396,9 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
return fmt.Errorf("Bootstrap resolver [%v]: %v", resolver, err)
}
}
proxy.xTransport.ignoreSystemDNS = config.IgnoreSystemDNS
proxy.xTransport.bootstrapResolvers = config.BootstrapResolvers
}
proxy.xTransport.bootstrapResolvers = config.BootstrapResolvers
proxy.xTransport.ignoreSystemDNS = config.IgnoreSystemDNS
proxy.xTransport.useIPv4 = config.SourceIPv4
proxy.xTransport.useIPv6 = config.SourceIPv6
proxy.xTransport.keepAlive = time.Duration(config.KeepAlive) * time.Second