aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-11-18 08:30:03 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-11-18 08:30:03 +0500
commit57af671e2b8242091cca9cadf73c89a028e421ec (patch)
treecc24d7d9ea3154026c7c14db014caff87cfbaa41
parent8fa56f4bcfc98f7c040288375bbf4ad25dbd4172 (diff)
downloadprosody-57af671e2b8242091cca9cadf73c89a028e421ec.tar.gz
prosody-57af671e2b8242091cca9cadf73c89a028e421ec.zip
mod_console: Moved activation of the console port from the main file to mod_console.
-rw-r--r--plugins/mod_console.lua2
-rwxr-xr-xprosody1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index 5a092298..82045232 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -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 3a1dafb2..ae9cd2fc 100755
--- 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