aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-11-28 14:30:12 +0000
committerMatthew Wild <mwild1@gmail.com>2011-11-28 14:30:12 +0000
commit05214cebac73c1559b0a794d9d982cfcb099717e (patch)
tree512f5eefa45cefba9181527beabc653b684a638a
parenta66c1975686980fe42b8f8a4dcefde75da975540 (diff)
downloadprosody-05214cebac73c1559b0a794d9d982cfcb099717e.tar.gz
prosody-05214cebac73c1559b0a794d9d982cfcb099717e.zip
s2smanager: Use config over xmppserver's default interface
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index b930ceab..77a1b040 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -319,7 +319,7 @@ function try_connect(host_session, connect_host, connect_port, err)
if not sources then
sources = {};
- local cfg_sources = connlisteners_get("xmppserver").default_interface or config.get("*", "core", "interface");
+ local cfg_sources = config.get("*", "core", "interface") or connlisteners_get("xmppserver").default_interface;
for i, source in ipairs(cfg_sources) do
if source == "*" then
sources[i] = new_ip("0.0.0.0", "IPv4");