prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

Sat, 09 Jan 2010 07:12:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 09 Jan 2010 07:12:30 +0000
changeset 2429
5cfa1400e247
parent 2428
3ba9db4b9311
child 2430
69d377c84fe3

prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

prosody file | annotate | diff | comparison | revisions
--- 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

mercurial