aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_tcp_dist.erl
diff options
context:
space:
mode:
authorPeter Lemenkov <[email protected]>2016-07-14 17:51:16 +0300
committerPeter Lemenkov <[email protected]>2016-07-17 16:12:46 +0300
commit84549af1c996657aedee1263afec28b21bfa42a4 (patch)
treed420ace805b7297bddcb99833c321b32761e61fb /lib/kernel/src/inet_tcp_dist.erl
parentb67da3610ace6d4e998bdfb458343165e205fae8 (diff)
downloadotp-84549af1c996657aedee1263afec28b21bfa42a4.tar.gz
otp-84549af1c996657aedee1263afec28b21bfa42a4.tar.bz2
otp-84549af1c996657aedee1263afec28b21bfa42a4.zip
Respect -proto_dist switch while connection to EPMD
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'lib/kernel/src/inet_tcp_dist.erl')
-rw-r--r--lib/kernel/src/inet_tcp_dist.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/inet_tcp_dist.erl b/lib/kernel/src/inet_tcp_dist.erl
index f91d7ef7c3..94bde55133 100644
--- a/lib/kernel/src/inet_tcp_dist.erl
+++ b/lib/kernel/src/inet_tcp_dist.erl
@@ -74,7 +74,7 @@ gen_listen(Driver, Name) ->
TcpAddress = get_tcp_address(Driver, Socket),
{_,Port} = TcpAddress#net_address.address,
ErlEpmd = net_kernel:epmd_module(),
- case ErlEpmd:register_node(Name, Port) of
+ case ErlEpmd:register_node(Name, Port, Driver) of
{ok, Creation} ->
{ok, {Socket, TcpAddress, Creation}};
Error ->