comment polish

This commit is contained in:
nathan 2018-03-03 11:28:22 +01:00
parent 0c887f5524
commit ee87d1f792
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}