Comparison

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
comparison
equal deleted inserted replaced
5857:8613888d0f9e 5859:e327f2d4e09f
281 session.version = tonumber(attr.version) or 0; 281 session.version = tonumber(attr.version) or 0;
282 282
283 -- TODO: Rename session.secure to session.encrypted 283 -- TODO: Rename session.secure to session.encrypted
284 if session.secure == false then 284 if session.secure == false then
285 session.secure = true; 285 session.secure = true;
286 session.encrypted = true;
286 287
287 local sock = session.conn:socket(); 288 local sock = session.conn:socket();
288 if sock.info then 289 if sock.info then
289 local info = sock:info(); 290 local info = sock:info();
290 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); 291 (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher);