Software /
code /
prosody
Diff
plugins/mod_debug.lua @ 969:9ab6934fb1ff
mod_debug: Run on a different port, and use a different listener to mod_console
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Apr 2009 21:14:48 +0100 |
parent | 946:cf4d9e2d33d1 |
child | 997:c81b6141d693 |
line wrap: on
line diff
--- a/plugins/mod_debug.lua Wed Apr 08 20:19:55 2009 +0100 +++ b/plugins/mod_debug.lua Wed Apr 08 21:14:48 2009 +0100 @@ -10,7 +10,7 @@ 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 @@ 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