changeset 1124:689e69df1cc4

mod_bidi: Make sure context for stanzas coming from bidi-enabled s2sout connections have the correct direction attribute
author Kim Alvefur <zash@zash.se>
date Sat, 03 Aug 2013 00:24:12 +0200
parents 0e16e5e2f410
children 901e361af918
files mod_bidi/mod_bidi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;