aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-18 21:48:58 +0200
committerKim Alvefur <zash@zash.se>2015-05-18 21:48:58 +0200
commit5085777f131d02ed006bf0b47ff26781c269cf82 (patch)
tree790282d6211cf5cd84441a33e832e4d77bb92402 /plugins/mod_tls.lua
parent6e7394f5f3f6c608b5bb1e3d7de13277850fdaa5 (diff)
downloadprosody-5085777f131d02ed006bf0b47ff26781c269cf82.tar.gz
prosody-5085777f131d02ed006bf0b47ff26781c269cf82.zip
mod_tls: Treat session.ssl_ctx being false as a signal that TLS is disabled
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 85fa172a..d1138e1c 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -61,7 +61,7 @@ do
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;