Software / code / prosody
Changeset
7863:a634fe3c21f2
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 25 Jan 2017 11:06:30 +0100 |
| parents | 7862:f5cbbf69cac8 |
| children | 7864:7ece186a44d3 |
| files | plugins/mod_tls.lua |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Wed Jan 25 10:47:31 2017 +0100 +++ b/plugins/mod_tls.lua Wed Jan 25 11:06:30 2017 +0100 @@ -79,6 +79,10 @@ 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