diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-09 07:12:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-09 07:12:30 +0000 |
commit | e9bd8209bba36616a42269c78cfd14dd53c49fa0 (patch) | |
tree | afc608ed12fef7bd78edffce757076ca02872194 /prosody | |
parent | 45b07dd0faa477d52f5fba3cc9fcc5da2cb7b3b7 (diff) | |
download | prosody-e9bd8209bba36616a42269c78cfd14dd53c49fa0.tar.gz prosody-e9bd8209bba36616a42269c78cfd14dd53c49fa0.zip |
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |