Software /
code /
prosody
Diff
core/portmanager.lua @ 5550:557583904dc5
portmanager: Also include the interface the service is listening on
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Apr 2013 19:40:39 +0200 |
parent | 5549:cce17bcb7c94 |
child | 5776:bd0ff8ae98a8 |
child | 6041:a97591d2e1ad |
line wrap: on
line diff
--- a/core/portmanager.lua Mon Apr 29 22:03:17 2013 +0500 +++ b/core/portmanager.lua Mon Apr 29 19:40:39 2013 +0200 @@ -153,7 +153,7 @@ 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;