Changeset

2789:2419ca0bfab3

prosody: net_activate_ports: Accept strings as well as numbers for specifying ports
author Matthew Wild <mwild1@gmail.com>
date Sat, 09 Jan 2010 07:12:30 +0000
parents 2788:fb47ac5ed04c
children 2790:fa717c0be65c
files prosody
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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