summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-10-28 13:32:35 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-10-28 13:32:35 +0100
commit10cd5759dff7316becdb3b369f34246d20e3a9b3 (patch)
tree309f1ea4ecc6f37ffd0f80a7d74ed4dedd5a1cc6
parent7325382ba50a417906c1311d91a7ac738f45a616 (diff)
downloadrabbitmq-server-bug23446.tar.gz
Store listener IP addressbug23446
-rw-r--r--include/rabbit.hrl2
-rw-r--r--src/rabbit_networking.erl2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index c1c9bd65..4d4f6fe6 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -63,7 +63,7 @@
-record(binding, {source, key, destination, args = []}).
-record(reverse_binding, {destination, key, source, args = []}).
--record(listener, {node, protocol, host, port}).
+-record(listener, {node, protocol, host, ip_address, port}).
-record(basic_message, {exchange_name, routing_key, content, guid,
is_persistent}).
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index db5c71f6..5e173cb3 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -194,6 +194,7 @@ tcp_listener_started(IPAddress, Port) ->
#listener{node = node(),
protocol = tcp,
host = tcp_host(IPAddress),
+ ip_address = IPAddress,
port = Port}).
tcp_listener_stopped(IPAddress, Port) ->
@@ -202,6 +203,7 @@ tcp_listener_stopped(IPAddress, Port) ->
#listener{node = node(),
protocol = tcp,
host = tcp_host(IPAddress),
+ ip_address = IPAddress,
port = Port}).
active_listeners() ->