Changeset

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
parents 4430:607de4c95129
children 4432:cbc3224ed3c2
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");