diff prosody @ 906:0831db62f134

prosody: Allow ports to be specified as just numbers
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Mar 2009 14:04:42 +0000
parents 2c0b9e3c11c3
children 289388b79a83
line wrap: on
line diff
--- a/prosody	Sun Mar 22 12:37:56 2009 +0000
+++ b/prosody	Sun Mar 22 14:04:42 2009 +0000
@@ -123,7 +123,7 @@
 -- start listening on sockets
 local function do_ports(option, listener, default, conntype)
 	local ports = config.get("*", "core", option) or default;
-	--if type(ports) == "number" then ports = {ports} end;
+	if type(ports) == "number" then ports = {ports} end;
 	
 	if type(ports) ~= "table" then
 		log("error", "core."..option.." is not a table");