aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2017-11-29 10:42:48 +0100
committerRaimo Niskanen <[email protected]>2017-12-04 13:56:29 +0100
commit2fcb213117670bad6a9009caef8ced5b6397fdb2 (patch)
tree173d84a1a06ba333e66fc8c810b6532430dad0c5
parent6f68901d8df9538d44574040f1faef12346df92b (diff)
downloadotp-2fcb213117670bad6a9009caef8ced5b6397fdb2.tar.gz
otp-2fcb213117670bad6a9009caef8ced5b6397fdb2.tar.bz2
otp-2fcb213117670bad6a9009caef8ced5b6397fdb2.zip
Use SNI when connecting
-rw-r--r--lib/ssl/src/inet_tls_dist.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssl/src/inet_tls_dist.erl b/lib/ssl/src/inet_tls_dist.erl
index d9468aba1e..639ae43131 100644
--- a/lib/ssl/src/inet_tls_dist.erl
+++ b/lib/ssl/src/inet_tls_dist.erl
@@ -357,7 +357,11 @@ do_setup(Driver, Kernel, Node, Type, MyNode, LongOrShortNames, SetupTime) ->
ErlEpmd = net_kernel:epmd_module(),
case ErlEpmd:port_please(Name, Ip) of
{port, TcpPort, Version} ->
- Opts = trace(connect_options(get_ssl_options(client))),
+ Opts =
+ trace(
+ connect_options(
+ [{server_name_indication, atom_to_list(Node)}
+ |get_ssl_options(client)])),
dist_util:reset_timer(Timer),
case ssl:connect(
Address, TcpPort,