mod_console: Moved activation of the console port from the main file to mod_console.
authorWaqas Hussain <waqas20@gmail.com>
Wed, 18 Nov 2009 03:30:03 +0000 (08:30 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Wed, 18 Nov 2009 03:30:03 +0000 (08:30 +0500)
plugins/mod_console.lua
prosody

index 5a09229873da5254d7836c55ec93f00ea2dd3b3c..82045232a800d20fb8295d6459f7737e7d196671 100644 (file)
@@ -650,3 +650,5 @@ if option and option ~= "short" and option ~= "full" and option ~= "graphic" the
        end
 end
 end
+
+prosody.net_activate_ports("console", "console", {5582}, "tcp");
diff --git a/prosody b/prosody
index 3a1dafb20edba3c3657f867f0961dcbb70c03f43..ae9cd2fc5438fa2569b416446cabb1d3661e90d3 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -259,7 +259,6 @@ function prepare_to_start()
        prosody.net_activate_ports("s2s", "xmppserver", {5269});
        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