diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 18:45:04 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 18:45:04 +0100 |
commit | 6521b0e6612036ceb4d4db1a8e6a99ac3d3a4ec2 (patch) | |
tree | 153d303c780b971cb5857b9390d21a2c57b96cc6 /core | |
parent | 67b91128c9fbbbfe49e0fc571c0542c7187cf762 (diff) | |
download | prosody-6521b0e6612036ceb4d4db1a8e6a99ac3d3a4ec2.tar.gz prosody-6521b0e6612036ceb4d4db1a8e6a99ac3d3a4ec2.zip |
portmanager: Ensure port is always a number (thanks Zash)
Diffstat (limited to 'core')
-rw-r--r-- | core/portmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 3bd143ef..5f53b61c 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -112,6 +112,7 @@ function activate(service_name) 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 |