Software /
code /
prosody
Diff
core/s2smanager.lua @ 10301:3123a13cf577
core.s2smanager: Remove bidi-enabled s2sin from outgoing routing table
Caused creation of new s2sout instead of proper bidi-enabled s2sin.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 05 Oct 2019 16:21:41 +0200 |
parent | 10244:483cc47f15f8 |
child | 10304:56522bb3bca5 |
line wrap: on
line diff
--- a/core/s2smanager.lua Sat Oct 05 15:22:59 2019 +0200 +++ b/core/s2smanager.lua Sat Oct 05 16:21:41 2019 +0200 @@ -93,6 +93,9 @@ hosts[session.from_host].s2sout[session.to_host] = nil; session:bounce_sendq(reason); elseif session.direction == "incoming" then + if session.outgoing then + hosts[session.from_host].s2sout[session.to_host] = nil; + end incoming_s2s[session] = nil; end