summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_networking.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 5e173cb351..ac0b9860d2 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -189,6 +189,9 @@ stop_tcp_listener(Host, Port) ->
ok.
tcp_listener_started(IPAddress, Port) ->
+ %% We need the ip to distinguish e.g. 0.0.0.0 and 127.0.0.1
+ %% We need the host so we can distinguish multiple instances of the above
+ %% in a cluster.
ok = mnesia:dirty_write(
rabbit_listener,
#listener{node = node(),