Diff

plugins/mod_s2s/s2sout.lib.lua @ 5859:e327f2d4e09f

mod_c2s, mod_s2s: Set session.encrypted as session.secure does not allways mean encrypted (eg consider_bosh_secure)
author Kim Alvefur <zash@zash.se>
date Mon, 07 Oct 2013 12:43:00 +0200
parent 5799:4a7e90b4c97d
child 6017:ac0879a8190a
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Sun Oct 06 23:18:54 2013 +0200
+++ b/plugins/mod_s2s/s2sout.lib.lua	Mon Oct 07 12:43:00 2013 +0200
@@ -270,6 +270,7 @@
 	-- Reset secure flag in case this is another
 	-- connection attempt after a failed STARTTLS
 	host_session.secure = nil;
+	host_session.encrypted = nil;
 
 	local conn, handler;
 	local proto = connect_host.proto;