# HG changeset patch # User Kim Alvefur # Date 1567873996 -7200 # Node ID d7cadd11805389a243686fc1874d961733929929 # Parent 5de65f30fe5e09b870a2a3000a407e5b53ac5840 mod_s2s: Insert s2sin into outgoing routing table when bidirectional diff -r 5de65f30fe5e -r d7cadd118053 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sat Sep 07 18:32:29 2019 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Sat Sep 07 18:33:16 2019 +0200 @@ -216,6 +216,10 @@ end else + if session.outgoing and not hosts[to].s2sout[from] then + session.log("debug", "Setting up to handle route from %s to %s", to, from); + hosts[to].s2sout[from] = session; -- luacheck: ignore 122 + end local host_session = hosts[to]; session.send = function(stanza) return host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });