Changeset

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
parents 5549:cce17bcb7c94
children 5552:40e7a6cf15ff
files core/portmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;