From 3d72a9c535d4103599f66effafa9766f19cb2223 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 17 Oct 2009 10:49:13 +0100 Subject: prosody: Rename global net_activate_ports -> prosody.net_activate_ports --- prosody | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'prosody') 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 -- cgit v1.2.3