# HG changeset patch # User Matthew Wild # Date 1237730682 0 # Node ID 0831db62f13477c2824dc7dff83c9877dc3a9733 # Parent 6169597d5574953cff3c3d868ea44b2508f7428f prosody: Allow ports to be specified as just numbers diff -r 6169597d5574 -r 0831db62f134 prosody --- 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");