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 | 0ac9242e025f4d799b5645957f72547eff06f77f (patch) | |
tree | 5c02d20037c728eec37a071af9565e598f89212e /prosody | |
parent | df3d5883caa974994f85145642a41088f5f12693 (diff) | |
download | prosody-0ac9242e025f4d799b5645957f72547eff06f77f.tar.gz prosody-0ac9242e025f4d799b5645957f72547eff06f77f.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
@@ -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 |