diff options
author | Kim Alvefur <zash@zash.se> | 2017-01-25 11:06:30 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-01-25 11:06:30 +0100 |
commit | 3258500edbe277d20f085985986ef806f5746e6f (patch) | |
tree | 21310cfd53d3fb211f84f69b69d8ef90094fc97e | |
parent | bdeb5cc9c575d5f5ba62e33e9c032da47e1dcd00 (diff) | |
download | prosody-3258500edbe277d20f085985986ef806f5746e6f.tar.gz prosody-3258500edbe277d20f085985986ef806f5746e6f.zip |
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
-rw-r--r-- | plugins/mod_tls.lua | 4 |
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 |