Comparison

plugins/s2s/s2sout.lib.lua @ 4570:9612abc89dd1

mod_s2s, s2sout.lib: import cert verify and add another fallback method in case socket.local_addresses isn't there.
author Marco Cirillo <maranda@lightwitch.org>
date Fri, 24 Feb 2012 15:34:25 +0000
parent 4569:34b1122126f6
child 4573:09255a10fdfa
comparison
equal deleted inserted replaced
4569:34b1122126f6 4570:9612abc89dd1
22 local socket = require "socket"; 22 local socket = require "socket";
23 23
24 local s2s_new_outgoing = require "core.s2smanager".new_outgoing; 24 local s2s_new_outgoing = require "core.s2smanager".new_outgoing;
25 local s2s_destroy_session = require "core.s2smanager".destroy_session; 25 local s2s_destroy_session = require "core.s2smanager".destroy_session;
26 26
27 local cfg_sources = config.get("*", "core", "s2s_interfaces") or socket.local_addresses(); 27 local cfg_sources = config.get("*", "core", "s2s_interfaces") or socket.local_addresses and socket.local_addresses() or { "*" };
28 28
29 local s2sout = {}; 29 local s2sout = {};
30 30
31 local s2s_listener; 31 local s2s_listener;
32 32