diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-23 02:33:10 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-23 02:33:10 +0100 |
commit | 43d40acd96caab4feff63dbb1797efa1158285ac (patch) | |
tree | f533ef23e36c976775ec2c08a425d9ef880abeda /prosody | |
parent | 49705c8ca43919c3c6474159a5474e18b2649193 (diff) | |
download | prosody-43d40acd96caab4feff63dbb1797efa1158285ac.tar.gz prosody-43d40acd96caab4feff63dbb1797efa1158285ac.zip |
prosody: Correctly allow console ports to be changed through the config
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -188,6 +188,7 @@ end -- start listening on sockets function net_activate_ports(option, listener, default, conntype) + if not cl.get(listener) then return; end local ports = config.get("*", "core", option.."_ports") or default; if type(ports) == "number" then ports = {ports} end; @@ -215,10 +216,7 @@ net_activate_ports("c2s", "xmppclient", {5222}, (global_ssl_ctx and "tls") or "t net_activate_ports("s2s", "xmppserver", {5269}, "tcp"); net_activate_ports("component", "xmppcomponent", {}, "tcp"); net_activate_ports("legacy_ssl", "xmppclient", {}, "ssl"); - -if cl.get("console") then - cl.start("console", { interface = config.get("*", "core", "console_interface") or "127.0.0.1" }) -end +net_activate_ports("console", "console", {5582}, "tcp"); -- Catch global accesses -- local locked_globals_mt = { __index = function (t, k) error("Attempt to read a non-existent global '"..k.."'", 2); end, __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end } |