diff options
-rw-r--r-- | include/rabbit.hrl | 2 | ||||
-rw-r--r-- | src/rabbit_networking.erl | 2 |
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() -> |