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
commite9bd8209bba36616a42269c78cfd14dd53c49fa0 (patch)
treeafc608ed12fef7bd78edffce757076ca02872194
parent45b07dd0faa477d52f5fba3cc9fcc5da2cb7b3b7 (diff)
downloadprosody-e9bd8209bba36616a42269c78cfd14dd53c49fa0.tar.gz
prosody-e9bd8209bba36616a42269c78cfd14dd53c49fa0.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 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