aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-17 10:49:13 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-17 10:49:13 +0100
commit3d72a9c535d4103599f66effafa9766f19cb2223 (patch)
treefc2b11b1b021d74c1f8da021982b007512673da3 /prosody
parentfe39536b5597410190fd6b95dff8d4a39193ad18 (diff)
downloadprosody-3d72a9c535d4103599f66effafa9766f19cb2223.tar.gz
prosody-3d72a9c535d4103599f66effafa9766f19cb2223.zip
prosody: Rename global net_activate_ports -> prosody.net_activate_ports
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody12
1 files changed, 6 insertions, 6 deletions
diff --git a/prosody b/prosody
index 01f2a982..02b66b21 100755
--- a/prosody
+++ b/prosody
@@ -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