Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 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 |
parent | 6709:b6eff3ba13de |
child | 6832:9566a15d3e59 |
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;