Diff

core/s2smanager.lua @ 4458:9f6c68cb3fbd

s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default).
author Waqas Hussain <waqas20@gmail.com>
date Wed, 14 Dec 2011 06:46:24 +0500
parent 4455:447234173e9e
child 4461:a81d045e7d16
line wrap: on
line diff
--- a/core/s2smanager.lua	Wed Dec 14 06:42:23 2011 +0500
+++ b/core/s2smanager.lua	Wed Dec 14 06:46:24 2011 +0500
@@ -319,6 +319,9 @@
 		if not sources then
 			sources =  {};
 			local cfg_sources = config.get("*", "core", "interface") or connlisteners_get("xmppserver").default_interface;
+			if type(cfg_sources) == "string" then
+				cfg_sources = { cfg_sources };
+			end
 			for i, source in ipairs(cfg_sources) do
 				if source == "*" then
 					sources[i] = new_ip("0.0.0.0", "IPv4");