From 3258500edbe277d20f085985986ef806f5746e6f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 25 Jan 2017 11:06:30 +0100 Subject: mod_tls: Add debug logging for when TLS should be doable but no ssl context was set --- plugins/mod_tls.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') 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 -- cgit v1.2.3