# HG changeset patch # User Waqas Hussain # Date 1323827184 -18000 # Node ID 9f6c68cb3fbded8388b6b37e6dc65e6dc19793ee # Parent 332a5d73e5b648e65650da2f9d486ae3a3d9b3f4 s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default). diff -r 332a5d73e5b6 -r 9f6c68cb3fbd core/s2smanager.lua --- 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");