chia7712 commented on a change in pull request #10586: URL: https://github.com/apache/kafka/pull/10586#discussion_r618107415
########## File path: core/src/main/scala/kafka/server/BrokerServer.scala ########## @@ -272,7 +273,7 @@ class BrokerServer( val networkListeners = new ListenerCollection() config.advertisedListeners.foreach { ep => networkListeners.add(new Listener(). - setHost(ep.host). + setHost(if (Utils.isBlank(ep.host)) InetAddress.getLocalHost.getCanonicalHostName else ep.host). Review comment: I feel it is ok to check blank manually. It won't bring huge code conflicts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org