comment polish
This commit is contained in:
parent
0c887f5524
commit
ee87d1f792
|
@ -169,7 +169,7 @@ class DnsServer extends Shutdownable {
|
|||
.option(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(EndPoint.WRITE_BUFF_LOW, EndPoint.WRITE_BUFF_HIGH))
|
||||
.childHandler(new DnsServerHandler(logger));
|
||||
|
||||
// have to check options.host for null. we don't bind to 0.0.0.0, we bind to "null" to get the "any" address!
|
||||
// have to check options.host for "0.0.0.0". we don't bind to "0.0.0.0", we bind to "null" to get the "any" address!
|
||||
if (hostName.equals("0.0.0.0")) {
|
||||
tcpBootstrap.localAddress(tcpPort);
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ class Server<C extends Connection> extends EndPointServer {
|
|||
.childHandler(new RegistrationRemoteHandlerServerTCP(threadName,
|
||||
registrationWrapper));
|
||||
|
||||
// have to check options.host for null. we don't bind to 0.0.0.0, we bind to "null" to get the "any" address!
|
||||
// have to check options.host for "0.0.0.0". we don't bind to "0.0.0.0", we bind to "null" to get the "any" address!
|
||||
if (hostName.equals("0.0.0.0")) {
|
||||
tcpBootstrap.localAddress(tcpPort);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user