# HG changeset patch # User Matthew Wild # Date 1263021150 0 # Node ID 5cfa1400e2472a7ef3b3f9ebac85ac560cda9967 # Parent 3ba9db4b93114619e6f91c1edab5352d916b3eed prosody: net_activate_ports: Accept strings as well as numbers for specifying ports diff -r 3ba9db4b9311 -r 5cfa1400e247 prosody --- a/prosody Sat Jan 09 07:03:48 2010 +0000 +++ b/prosody Sat Jan 09 07:12:30 2010 +0000 @@ -202,6 +202,7 @@ 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