aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-08 21:14:48 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-08 21:14:48 +0100
commit5a74e32109854347d7c437428d6c2c38c9974188 (patch)
tree76070c8294772da50ad9c18702c03da99a0eefdd
parentf6a5da2375a21b7cd2429b7ba82d819683af5109 (diff)
downloadprosody-5a74e32109854347d7c437428d6c2c38c9974188.tar.gz
prosody-5a74e32109854347d7c437428d6c2c38c9974188.zip
mod_debug: Run on a different port, and use a different listener to mod_console
-rw-r--r--plugins/mod_debug.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_debug.lua b/plugins/mod_debug.lua
index 93724354..11d14a42 100644
--- a/plugins/mod_debug.lua
+++ b/plugins/mod_debug.lua
@@ -10,7 +10,7 @@ module.host = "*";
local connlisteners_register = require "net.connlisteners".register;
-local console_listener = { default_port = 5582; default_mode = "*l"; };
+local console_listener = { default_port = 5583; default_mode = "*l"; };
local sha256, missingglobal = require "util.hashes".sha256;
@@ -102,7 +102,8 @@ function console_listener.disconnect(conn, err)
end
-connlisteners_register('console', console_listener);
+connlisteners_register('debug', console_listener);
+require "net.connlisteners".start("debug");
-- Console commands --
-- These are simple commands, not valid standalone in Lua