Default mod_console to listening on localhost only. May be changed with console_inter...
authorMatthew Wild <mwild1@gmail.com>
Wed, 7 Jan 2009 17:41:27 +0000 (17:41 +0000)
committerMatthew Wild <mwild1@gmail.com>
Wed, 7 Jan 2009 17:41:27 +0000 (17:41 +0000)
prosody

diff --git a/prosody b/prosody
index b4a18c678e095da49a6e2583ddb5a8d282ae2f71..5cfa740db33895d328ede13770cb6d2f6efa14d8 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -146,7 +146,7 @@ do_ports("legacy_ssl_ports", "xmppclient", {}, "ssl");
 
 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