aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-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