Skip to content

Commit

Permalink
prosody: Allow ports to be specified as just numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mwild1 committed Mar 22, 2009
1 parent cbaa12f commit 037a080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prosody
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ end
-- start listening on sockets -- start listening on sockets
local function do_ports(option, listener, default, conntype) local function do_ports(option, listener, default, conntype)
local ports = config.get("*", "core", option) or default; 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 if type(ports) ~= "table" then
log("error", "core."..option.." is not a table"); log("error", "core."..option.." is not a table");
Expand Down

0 comments on commit 037a080

Please sign in to comment.