# HG changeset patch # User Kim Alvefur # Date 1375482252 -7200 # Node ID 689e69df1cc453d5c40ca379fb22d874241d580e # Parent 0e16e5e2f410643d7e8e898e56d1dcd8b439c237 mod_bidi: Make sure context for stanzas coming from bidi-enabled s2sout connections have the correct direction attribute diff -r 0e16e5e2f410 -r 689e69df1cc4 mod_bidi/mod_bidi.lua --- 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;