mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
authorKim Alvefur <zash@zash.se>
Wed, 25 Jan 2017 11:06:30 +0100
changeset 7866 a634fe3c21f2
parent 7865 f5cbbf69cac8
child 7867 7ece186a44d3
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
plugins/mod_tls.lua
--- 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