mod_bidi: Make sure context for stanzas coming from bidi-enabled s2sout connections have the correct direction attribute
--- a/mod_bidi/mod_bidi.lua Fri Aug 02 18:22:55 2013 +0200
+++ b/mod_bidi/mod_bidi.lua Sat Aug 03 00:24:12 2013 +0200
@@ -36,7 +36,7 @@
bidi_sessions[origin.from_host] = origin;
elseif origin.type == "s2sout" then -- handle incoming stanzas correctly
local bidi_session = {
- type = "s2sin";
+ type = "s2sin"; direction = "incoming";
is_bidi = true; orig_session = origin;
to_host = origin.from_host;
from_host = origin.to_host;