diff options
author | Ingela Anderton Andin <[email protected]> | 2017-10-20 15:03:30 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-10-20 15:03:30 +0200 |
commit | b425be16b3678496858254e957eb35380d628227 (patch) | |
tree | 804805304840e73c9d1c8262e07365c43ef738ec | |
parent | b73c4d012e122547c896f64d92ef9af3e531433e (diff) | |
download | otp-b425be16b3678496858254e957eb35380d628227.tar.gz otp-b425be16b3678496858254e957eb35380d628227.tar.bz2 otp-b425be16b3678496858254e957eb35380d628227.zip |
ssl: Do not provide IP address to ssl:connect in erlang distribution over TLS
As TLS clients will perform a hostname check against certificates
the IP-address does not make much sense.
-rw-r--r-- | lib/ssl/src/inet_tls_dist.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/inet_tls_dist.erl b/lib/ssl/src/inet_tls_dist.erl index 0da4b3587f..78094c474b 100644 --- a/lib/ssl/src/inet_tls_dist.erl +++ b/lib/ssl/src/inet_tls_dist.erl @@ -93,7 +93,7 @@ do_setup(Driver, Kernel, Node, Type, MyNode, LongOrShortNames, SetupTime) -> ?trace("port_please(~p) -> version ~p~n", [Node,Version]), dist_util:reset_timer(Timer), - case ssl_tls_dist_proxy:connect(Driver, Ip, TcpPort) of + case ssl_tls_dist_proxy:connect(Driver, Address, TcpPort) of {ok, Socket} -> HSData = connect_hs_data(Kernel, Node, MyNode, Socket, Timer, Version, Ip, TcpPort, Address, |