Skip to content

Commit

Permalink
[FLINK-9103] Using CanonicalHostName instead of IP for SSL coonection…
Browse files Browse the repository at this point in the history
… on NettyClient

This closes apache#5789.
  • Loading branch information
EAlexRojas authored and tillrohrmann committed Apr 13, 2018
1 parent 7a78d00 commit ffb0382
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void initChannel(SocketChannel channel) throws Exception {
// 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);

Expand Down

0 comments on commit ffb0382

Please sign in to comment.