Merge pull request #5573 from hellojukay/master

Enable DNS TCP fallback when UDP query timeout
pull/5599/head
Nikita Koksharov 1 year ago committed by GitHub
commit e216e64829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -33,7 +33,7 @@ public class DnsAddressResolverGroupFactory implements AddressResolverGroupFacto
DnsServerAddressStreamProvider nameServerProvider) {
DnsNameResolverBuilder dnsResolverBuilder = new DnsNameResolverBuilder();
dnsResolverBuilder.channelType(channelType)
.socketChannelType(socketChannelType)
.socketChannelType(socketChannelType, true)
.nameServerProvider(nameServerProvider)
.resolveCache(new DefaultDnsCache())
.cnameCache(new DefaultDnsCnameCache());

Loading…
Cancel
Save