Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/4598#discussion_r139624279
--- Diff:
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrap.java
---
@@ -110,10 +114,21 @@ protected void initChannel(SocketChannel ch) {
this.serverChannel = ch.sync().channel();
InetSocketAddress bindAddress = (InetSocketAddress)
serverChannel.localAddress();
- String address = bindAddress.getAddress().getHostAddress();
+
+ InetAddress inetAddress = bindAddress.getAddress();
+ final String address;
+
+ if (inetAddress.isAnyLocalAddress()) {
--- End diff --
What is this case distinction for?
---