aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index dddfaacf..37a9d92b 100755
--- a/prosody
+++ b/prosody
@@ -202,6 +202,7 @@ function init_global_state()
log("error", "core."..ports_option.." is not a table");
else
for _, port in ipairs(ports) do
+ port = tonumber(port);
if type(port) ~= "number" then
log("error", "Non-numeric "..ports_option..": "..tostring(port));
else