aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-22 14:04:42 +0000
committerMatthew Wild <mwild1@gmail.com>2009-03-22 14:04:42 +0000
commitc918df533431f4d3d72cfb83d1c0b0fc5b2ae223 (patch)
tree0175f3922ba982100564bfab4a9dce77fc356786
parent0cb055053f07c6f16e0980df910460ea9548f5ca (diff)
downloadprosody-c918df533431f4d3d72cfb83d1c0b0fc5b2ae223.tar.gz
prosody-c918df533431f4d3d72cfb83d1c0b0fc5b2ae223.zip
prosody: Allow ports to be specified as just numbers
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index b1740f27..45ee5983 100755
--- a/prosody
+++ b/prosody
@@ -123,7 +123,7 @@ end
-- 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");