diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-08 21:14:48 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-08 21:14:48 +0100 |
commit | 5a74e32109854347d7c437428d6c2c38c9974188 (patch) | |
tree | 76070c8294772da50ad9c18702c03da99a0eefdd | |
parent | f6a5da2375a21b7cd2429b7ba82d819683af5109 (diff) | |
download | prosody-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.lua | 5 |
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 |