diff options
| -rw-r--r-- | src/rabbit_networking.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 4f92ffe923..bc265cf84b 100644 --- a/src/rabbit_networking.erl +++ b/src/rabbit_networking.erl @@ -277,9 +277,8 @@ tcp_listener_stopped(Protocol, IPAddress, Port) -> port = Port}). record_distribution_listener() -> - {ok, Names} = net_adm:names(), - {Name, _} = rabbit_nodes:parts(node()), - [Port] = [P || {N, P} <- Names, N =:= Name], + {Name, Host} = rabbit_nodes:parts(node()), + {port, Port, _Version} = erl_epmd:port_please(Name, Host), tcp_listener_started(clustering, {0,0,0,0,0,0,0,0}, Port). active_listeners() -> |
