Init DnsNameResolverBuilder#nameServerAddresses
Motivation: DnsNameResolverBuilder#nameServerAddresses isn’t initialized with a default value. In most cases, user will want DefaultDnsServerAddresses#defaultAddresses. Modifications: Initialize DnsNameResolverBuilder#nameServerAddresses with DefaultDnsServerAddresses#defaultAddresses Result: DnsNameResolverBuilder more convenient usage.
This commit is contained in:
parent
38f27b06e7
commit
391a411264
@ -38,7 +38,7 @@ public final class DnsNameResolverBuilder {
|
||||
private final EventLoop eventLoop;
|
||||
private ChannelFactory<? extends DatagramChannel> channelFactory;
|
||||
private InetSocketAddress localAddress = DnsNameResolver.ANY_LOCAL_ADDR;
|
||||
private DnsServerAddresses nameServerAddresses;
|
||||
private DnsServerAddresses nameServerAddresses = DefaultDnsServerAddresses.defaultAddresses();
|
||||
private DnsCache resolveCache;
|
||||
private Integer minTtl;
|
||||
private Integer maxTtl;
|
||||
|
Loading…
Reference in New Issue
Block a user