aboutsummaryrefslogtreecommitdiffstats
path: root/core/portmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-29 19:40:39 +0200
committerKim Alvefur <zash@zash.se>2013-04-29 19:40:39 +0200
commitddd84e8a663eda1c6b06e8f7b7adf51a48f42318 (patch)
tree872c154fdb3ab3fb61b467b23070285d10d7ef66 /core/portmanager.lua
parenta848b593fe7c7a5464a8d915db125cf348c56d91 (diff)
downloadprosody-ddd84e8a663eda1c6b06e8f7b7adf51a48f42318.tar.gz
prosody-ddd84e8a663eda1c6b06e8f7b7adf51a48f42318.zip
portmanager: Also include the interface the service is listening on
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r--core/portmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 923174c2..7a247452 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -153,7 +153,7 @@ function activate(service_name)
if not handler then
log("error", "Failed to open server port %d on %s, %s", port_number, interface, error_to_friendly_message(service_name, port_number, err));
else
- table.insert(hooked_ports, port_number);
+ table.insert(hooked_ports, "["..interface.."]:"..port_number);
log("debug", "Added listening service %s to [%s]:%d", service_name, interface, port_number);
active_services:add(service_name, interface, port_number, {
server = handler;