Software /
code /
prosody
Changeset
6710:d062314446f6
mod_tls: Treat session.ssl_ctx being false as a signal that TLS is disabled
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 May 2015 21:48:58 +0200 |
parents | 6709:b6eff3ba13de |
children | 6711:76683a3f3d75 |
files | plugins/mod_tls.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Mon May 18 21:43:24 2015 +0200 +++ b/plugins/mod_tls.lua Mon May 18 21:48:58 2015 +0200 @@ -61,7 +61,7 @@ end local function can_do_tls(session) - if not session.conn.starttls then + if session.ssl_ctx == false or not session.conn.starttls then return false; elseif session.ssl_ctx then return true;