From e9bd8209bba36616a42269c78cfd14dd53c49fa0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 9 Jan 2010 07:12:30 +0000 Subject: prosody: net_activate_ports: Accept strings as well as numbers for specifying ports --- prosody | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3