Diff

plugins/mod_tls.lua @ 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
parent 7834:a2081d28bd22
child 7864:7ece186a44d3
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