Diff

plugins/mod_s2s/mod_s2s.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 5801:224644752bf4
child 5978:d21ea6001bba
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Oct 06 23:18:54 2013 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Mon Oct 07 12:43:00 2013 +0200
@@ -283,6 +283,7 @@
 	-- TODO: Rename session.secure to session.encrypted
 	if session.secure == false then
 		session.secure = true;
+		session.encrypted = true;
 
 		local sock = session.conn:socket();
 		if sock.info then