Changeset

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
parents 4457:332a5d73e5b6
children 4459:2ccc386b9913
files core/s2smanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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");