Software /
code /
prosody
Changeset
4786:ad6d4ab40b20
portmanager: Ensure port is always a number (thanks Zash)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 18:45:04 +0100 |
parents | 4785:36234dc4b177 |
children | 4787:1d753fecf95b |
files | core/portmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/portmanager.lua Sat Apr 28 18:36:03 2012 +0100 +++ b/core/portmanager.lua Sat Apr 28 18:45:04 2012 +0100 @@ -112,6 +112,7 @@ for interface in bind_interfaces do for port in bind_ports do + port = tonumber(port); if #active_services:search(nil, interface, port) > 0 then log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, active_services:search(nil, interface, port)[1][1].service.name or "<unnamed>", service_name or "<unnamed>"); else