Permalink
Browse files

prosody: Allow ports to be specified as just numbers

  • Loading branch information...
1 parent cbaa12f commit 037a080094d5dc94ce398930a2d89a5d07ae34d7 @mwild1 mwild1 committed Mar 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 prosody
View
@@ -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");

0 comments on commit 037a080

Please sign in to comment.