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 | 8770e9aedc62822e917171a60ed2055cb239db73 (patch) | |
tree | a5a9b948a4f3ea2c28af196952a8ee59e1820317 /core | |
parent | 5c9595e00fe0b8a02476ead3c156c4fb7236963b (diff) | |
download | prosody-8770e9aedc62822e917171a60ed2055cb239db73.tar.gz prosody-8770e9aedc62822e917171a60ed2055cb239db73.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"); |