# HG changeset patch # User Matthew Wild # Date 1322490612 0 # Node ID bbede0141f7ed97b4c84fb69a3efabefcf9476d7 # Parent 607de4c951291b50e1c0484465d285b3e35ab1b5 s2smanager: Use config over xmppserver's default interface diff -r 607de4c95129 -r bbede0141f7e core/s2smanager.lua --- 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");