aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-10-20 15:03:30 +0200
committerIngela Anderton Andin <[email protected]>2017-10-20 15:03:30 +0200
commitb425be16b3678496858254e957eb35380d628227 (patch)
tree804805304840e73c9d1c8262e07365c43ef738ec /lib/ssl
parentb73c4d012e122547c896f64d92ef9af3e531433e (diff)
downloadotp-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.
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/src/inet_tls_dist.erl2
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,