Software /
code /
prosody
Diff
plugins/mod_c2s.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 | 5802:5b79710dd5a1 |
child | 6005:98b768a41c9d |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Sun Oct 06 23:18:54 2013 +0200 +++ b/plugins/mod_c2s.lua Mon Oct 07 12:43:00 2013 +0200 @@ -69,6 +69,7 @@ -- since we now have a new stream header, session is secured if session.secure == false then session.secure = true; + session.encrypted = true; local sock = session.conn:socket(); if sock.info then @@ -209,6 +210,7 @@ -- Client is using legacy SSL (otherwise mod_tls sets this flag) if conn:ssl() then session.secure = true; + session.encrypted = true; -- Check if TLS compression is used local sock = conn:socket();