Default mod_console to listening on localhost only. May be changed with console_interface=xxx.xxx.xxx.xxx in the config
authorMatthew Wild <mwild1@gmail.com>
Wed, 07 Jan 2009 17:41:27 +0000
changeset 676 5e2dfeba1f14
parent 675 cc82394fea22
child 677 93e5309c5430
Default mod_console to listening on localhost only. May be changed with console_interface=xxx.xxx.xxx.xxx in the config
prosody
--- a/prosody	Wed Jan 07 15:14:24 2009 +0000
+++ b/prosody	Wed Jan 07 17:41:27 2009 +0000
@@ -146,7 +146,7 @@
 
 if config.get("*", "core", "console_enabled") then
 	if cl.get("console") then
-		cl.start("console")
+		cl.start("console", { interface = config.get("*", "core", "console_interface") or "127.0.0.1" })
 	else
 		log("error", "Console is enabled, but the console module appears not to be loaded");
 	end