Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5549:cce17bcb7c94 | 5550:557583904dc5 |
---|---|
151 -- Start listening on interface+port | 151 -- Start listening on interface+port |
152 local handler, err = server.addserver(interface, port_number, listener, mode, ssl); | 152 local handler, err = server.addserver(interface, port_number, listener, mode, ssl); |
153 if not handler then | 153 if not handler then |
154 log("error", "Failed to open server port %d on %s, %s", port_number, interface, error_to_friendly_message(service_name, port_number, err)); | 154 log("error", "Failed to open server port %d on %s, %s", port_number, interface, error_to_friendly_message(service_name, port_number, err)); |
155 else | 155 else |
156 table.insert(hooked_ports, port_number); | 156 table.insert(hooked_ports, "["..interface.."]:"..port_number); |
157 log("debug", "Added listening service %s to [%s]:%d", service_name, interface, port_number); | 157 log("debug", "Added listening service %s to [%s]:%d", service_name, interface, port_number); |
158 active_services:add(service_name, interface, port_number, { | 158 active_services:add(service_name, interface, port_number, { |
159 server = handler; | 159 server = handler; |
160 service = service_info; | 160 service = service_info; |
161 }); | 161 }); |