util.signal: Queue up multiple signals, instead of trampling on the previous debug...
[prosody.git] / prosody
diff --git a/prosody b/prosody
index 4900349ddf11a7b495b95dbc88ae145f9b036097..e4e5bc4789aede119051e0e53ee3687c2b4e1a26 100755 (executable)
--- 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