aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-12-14 06:46:24 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-12-14 06:46:24 +0500
commit8770e9aedc62822e917171a60ed2055cb239db73 (patch)
treea5a9b948a4f3ea2c28af196952a8ee59e1820317 /core
parent5c9595e00fe0b8a02476ead3c156c4fb7236963b (diff)
downloadprosody-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.lua3
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");