diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 05:07:32 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 05:07:32 +0500 |
commit | ef426e3d1aa4c2ea819ac56b1a95547cd45aae23 (patch) | |
tree | b0ab39e85e00f1ca87b957e5df6652d00a9a0071 | |
parent | 005e186fc8839b231b593a1cb98526009d57d62f (diff) | |
download | prosody-ef426e3d1aa4c2ea819ac56b1a95547cd45aae23.tar.gz prosody-ef426e3d1aa4c2ea819ac56b1a95547cd45aae23.zip |
net_activate_ports: Use the default config option 'ports' when no option is specified.
-rwxr-xr-x | prosody | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |