diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-12-14 06:46:24 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-12-14 06:46:24 +0500 |
commit | 06aa3c416e58c67413522dd379f834262ca1b2fd (patch) | |
tree | a5a9b948a4f3ea2c28af196952a8ee59e1820317 /core | |
parent | e246f6a8d7d5526c16ea307719f7c0febd340103 (diff) | |
download | prosody-06aa3c416e58c67413522dd379f834262ca1b2fd.tar.gz prosody-06aa3c416e58c67413522dd379f834262ca1b2fd.zip |
s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default).
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index df5523e1..240b9ba8 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -319,6 +319,9 @@ function try_connect(host_session, connect_host, connect_port, err) 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"); |