diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-17 10:49:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-17 10:49:13 +0100 |
commit | 3d72a9c535d4103599f66effafa9766f19cb2223 (patch) | |
tree | fc2b11b1b021d74c1f8da021982b007512673da3 /prosody | |
parent | fe39536b5597410190fd6b95dff8d4a39193ad18 (diff) | |
download | prosody-3d72a9c535d4103599f66effafa9766f19cb2223.tar.gz prosody-3d72a9c535d4103599f66effafa9766f19cb2223.zip |
prosody: Rename global net_activate_ports -> prosody.net_activate_ports
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -205,7 +205,7 @@ function prepare_to_start() local cl = require "net.connlisteners"; -- start listening on sockets - function net_activate_ports(option, listener, default, conntype) + function prosody.net_activate_ports(option, listener, default, conntype) if not cl.get(listener) then return; end local ports = config.get("*", "core", option.."_ports") or default; if type(ports) == "number" then ports = {ports} end; @@ -230,11 +230,11 @@ function prepare_to_start() end end - net_activate_ports("c2s", "xmppclient", {5222}, (global_ssl_ctx and "tls") or "tcp"); - net_activate_ports("s2s", "xmppserver", {5269}, (global_ssl_ctx and "tls") or "tcp"); - net_activate_ports("component", "xmppcomponent", {}, "tcp"); - net_activate_ports("legacy_ssl", "xmppclient", {}, "ssl"); - net_activate_ports("console", "console", {5582}, "tcp"); + prosody.net_activate_ports("c2s", "xmppclient", {5222}, (global_ssl_ctx and "tls") or "tcp"); + prosody.net_activate_ports("s2s", "xmppserver", {5269}, (global_ssl_ctx and "tls") or "tcp"); + prosody.net_activate_ports("component", "xmppcomponent", {}, "tcp"); + prosody.net_activate_ports("legacy_ssl", "xmppclient", {}, "ssl"); + prosody.net_activate_ports("console", "console", {5582}, "tcp"); prosody.start_time = os.time(); end |