aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-25 11:06:30 +0100
committerKim Alvefur <zash@zash.se>2017-01-25 11:06:30 +0100
commit3258500edbe277d20f085985986ef806f5746e6f (patch)
tree21310cfd53d3fb211f84f69b69d8ef90094fc97e /plugins/mod_tls.lua
parentbdeb5cc9c575d5f5ba62e33e9c032da47e1dcd00 (diff)
downloadprosody-3258500edbe277d20f085985986ef806f5746e6f.tar.gz
prosody-3258500edbe277d20f085985986ef806f5746e6f.zip
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 5869b2a5..678b4039 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -79,6 +79,10 @@ local function can_do_tls(session)
else
return false;
end
+ if not session.ssl_ctx then
+ session.log("debug", "Should be able to do TLS but no context available");
+ return false;
+ end
return session.ssl_ctx;
end