From ee87d1f792c18afe877957a1abcb174efd43dbe7 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 3 Mar 2018 11:28:22 +0100 Subject: [PATCH] comment polish --- src/dorkbox/network/DnsServer.java | 2 +- src/dorkbox/network/Server.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/network/DnsServer.java b/src/dorkbox/network/DnsServer.java index f6a0f8be..814e5887 100644 --- a/src/dorkbox/network/DnsServer.java +++ b/src/dorkbox/network/DnsServer.java @@ -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); } diff --git a/src/dorkbox/network/Server.java b/src/dorkbox/network/Server.java index fdff0720..bac590bb 100644 --- a/src/dorkbox/network/Server.java +++ b/src/dorkbox/network/Server.java @@ -229,7 +229,7 @@ class Server 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); }