diff options
author | Magnus Henoch <[email protected]> | 2016-04-20 17:20:05 +0100 |
---|---|---|
committer | Magnus Henoch <[email protected]> | 2016-05-25 17:36:50 +0100 |
commit | 252c60632664fdf54395d54ad8d7b7e9e6e74cca (patch) | |
tree | a7e916f5812af7970ea8f9d1db548aa444039706 /lib/ssl/src/inet_tls_dist.erl | |
parent | 34f853950685e4e7ab38f30fc3f17a6beac13349 (diff) | |
download | otp-252c60632664fdf54395d54ad8d7b7e9e6e74cca.tar.gz otp-252c60632664fdf54395d54ad8d7b7e9e6e74cca.tar.bz2 otp-252c60632664fdf54395d54ad8d7b7e9e6e74cca.zip |
Use the -epmd_module flag consistently
If the -epmd_module flag has been specified on the command line, use
that module to register and look up node names instead of the default,
erl_epmd.
Also document this option.
Diffstat (limited to 'lib/ssl/src/inet_tls_dist.erl')
-rw-r--r-- | lib/ssl/src/inet_tls_dist.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/src/inet_tls_dist.erl b/lib/ssl/src/inet_tls_dist.erl index 3481e89af0..0da4b3587f 100644 --- a/lib/ssl/src/inet_tls_dist.erl +++ b/lib/ssl/src/inet_tls_dist.erl @@ -87,7 +87,8 @@ do_setup(Driver, Kernel, Node, Type, MyNode, LongOrShortNames, SetupTime) -> case inet:getaddr(Address, Driver:family()) of {ok, Ip} -> Timer = dist_util:start_timer(SetupTime), - case erl_epmd:port_please(Name, Ip) of + ErlEpmd = net_kernel:epmd_module(), + case ErlEpmd:port_please(Name, Ip) of {port, TcpPort, Version} -> ?trace("port_please(~p) -> version ~p~n", [Node,Version]), |