Repository: flink
Updated Branches:
  refs/heads/master 635612886 -> ffb03821f


[FLINK-9103] Using CanonicalHostName instead of IP for SSL coonection on 
NettyClient

This closes #5789.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/ffb03821
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/ffb03821
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/ffb03821

Branch: refs/heads/master
Commit: ffb03821ff118b0949d7d42d6b67312ee8732c2b
Parents: 7a78d00
Author: EAlexRojas <alexrojas...@gmail.com>
Authored: Thu Mar 29 16:01:24 2018 +0200
Committer: Till Rohrmann <trohrm...@apache.org>
Committed: Fri Apr 13 12:56:32 2018 -0700

----------------------------------------------------------------------
 .../org/apache/flink/runtime/io/network/netty/NettyClient.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/ffb03821/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyClient.java
----------------------------------------------------------------------
diff --git 
a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyClient.java
 
b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyClient.java
index c845cb3..5fb083d 100644
--- 
a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyClient.java
+++ 
b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyClient.java
@@ -179,7 +179,7 @@ class NettyClient {
                                // SSL handler should be added first in the 
pipeline
                                if (clientSSLContext != null) {
                                        SSLEngine sslEngine = 
clientSSLContext.createSSLEngine(
-                                               
serverSocketAddress.getAddress().getHostAddress(),
+                                               
serverSocketAddress.getAddress().getCanonicalHostName(),
                                                serverSocketAddress.getPort());
                                        sslEngine.setUseClientMode(true);
 

Reply via email to