From 0ac9242e025f4d799b5645957f72547eff06f77f Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
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(+)

(limited to 'prosody')

diff --git a/prosody b/prosody
index 4900349d..e4e5bc47 100755
--- a/prosody
+++ b/prosody
@@ -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
-- 
cgit v1.2.3