aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-12-10 05:07:32 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-12-10 05:07:32 +0500
commitef426e3d1aa4c2ea819ac56b1a95547cd45aae23 (patch)
treeb0ab39e85e00f1ca87b957e5df6652d00a9a0071 /prosody
parent005e186fc8839b231b593a1cb98526009d57d62f (diff)
downloadprosody-ef426e3d1aa4c2ea819ac56b1a95547cd45aae23.tar.gz
prosody-ef426e3d1aa4c2ea819ac56b1a95547cd45aae23.zip
net_activate_ports: Use the default config option 'ports' when no option is specified.
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody3
1 files changed, 2 insertions, 1 deletions
diff --git a/prosody b/prosody
index 0a74051f..c9ff46c4 100755
--- a/prosody
+++ b/prosody
@@ -193,8 +193,9 @@ function init_global_state()
local cl = require "net.connlisteners";
function prosody.net_activate_ports(option, listener, default, conntype)
conntype = conntype or (global_ssl_ctx and "tls") or "tcp";
+ option = option and option.."_ports" or "ports";
if not cl.get(listener) then return; end
- local ports = config.get("*", "core", option.."_ports") or default;
+ local ports = config.get("*", "core", option) or default;
if type(ports) == "number" then ports = {ports} end;
if type(ports) ~= "table" then