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 | 14a692951e50089ad6dbcba7139d850159e798dd (patch) | |
tree | 21310cfd53d3fb211f84f69b69d8ef90094fc97e /plugins | |
parent | b734bd9b82ca97bd196ec583b57eac7201d243d5 (diff) | |
download | prosody-14a692951e50089ad6dbcba7139d850159e798dd.tar.gz prosody-14a692951e50089ad6dbcba7139d850159e798dd.zip |
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
Diffstat (limited to 'plugins')
-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 |