# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1263021150 0
# Node ID 2419ca0bfab3551b0d1023ddef2d1b4eec1d0ec6
# Parent  fb47ac5ed04c8520d2954094484cb76bb4298a17
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

diff -r fb47ac5ed04c -r 2419ca0bfab3 prosody
--- a/prosody	Thu Jan 07 01:26:01 2010 +0000
+++ b/prosody	Sat Jan 09 07:12:30 2010 +0000
@@ -192,6 +192,7 @@
 			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