aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-09 07:12:30 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-09 07:12:30 +0000
commit0ac9242e025f4d799b5645957f72547eff06f77f (patch)
tree5c02d20037c728eec37a071af9565e598f89212e
parentdf3d5883caa974994f85145642a41088f5f12693 (diff)
downloadprosody-0ac9242e025f4d799b5645957f72547eff06f77f.tar.gz
prosody-0ac9242e025f4d799b5645957f72547eff06f77f.zip
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index 4900349d..e4e5bc47 100755
--- a/prosody
+++ b/prosody
@@ -192,6 +192,7 @@ function init_global_state()
log("error", "core."..option.." is not a table");
else
for _, port in ipairs(ports) do
+ port = tonumber(port);
if type(port) ~= "number" then
log("error", "Non-numeric "..option.."_ports: "..tostring(port));
else