aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorMarco Cirillo <maranda@lightwitch.org>2012-02-24 15:34:25 +0000
committerMarco Cirillo <maranda@lightwitch.org>2012-02-24 15:34:25 +0000
commitc5f76e99d91e5e0fc2c2b47a7ce7499c46fb57ec (patch)
treeaafdca55468201207ed86c6fcd352f1f0d86bc4e /plugins/s2s/s2sout.lib.lua
parent35ddcf0af31198baef0f4ce2e580b041486d5194 (diff)
downloadprosody-c5f76e99d91e5e0fc2c2b47a7ce7499c46fb57ec.tar.gz
prosody-c5f76e99d91e5e0fc2c2b47a7ce7499c46fb57ec.zip
mod_s2s, s2sout.lib: import cert verify and add another fallback method in case socket.local_addresses isn't there.
Diffstat (limited to 'plugins/s2s/s2sout.lib.lua')
-rw-r--r--plugins/s2s/s2sout.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/s2s/s2sout.lib.lua b/plugins/s2s/s2sout.lib.lua
index 12669d97..2856a15c 100644
--- a/plugins/s2s/s2sout.lib.lua
+++ b/plugins/s2s/s2sout.lib.lua
@@ -24,7 +24,7 @@ local socket = require "socket";
local s2s_new_outgoing = require "core.s2smanager".new_outgoing;
local s2s_destroy_session = require "core.s2smanager".destroy_session;
-local cfg_sources = config.get("*", "core", "s2s_interfaces") or socket.local_addresses();
+local cfg_sources = config.get("*", "core", "s2s_interfaces") or socket.local_addresses and socket.local_addresses() or { "*" };
local s2sout = {};