Software /
code /
prosody
Diff
core/s2smanager.lua @ 4431:bbede0141f7e
s2smanager: Use config over xmppserver's default interface
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 28 Nov 2011 14:30:12 +0000 |
parent | 4422:c25dee24623f |
child | 4443:7456ddcc0b14 |
line wrap: on
line diff
--- a/core/s2smanager.lua Mon Nov 28 14:27:52 2011 +0000 +++ b/core/s2smanager.lua Mon Nov 28 14:30:12 2011 +0000 @@ -319,7 +319,7 @@ 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");