mod_tls: Treat session.ssl_ctx being false as a signal that TLS is disabled

This commit is contained in:
Kim Alvefur 2015-05-18 21:48:58 +02:00
parent 3f9b683457
commit 72dde1c231

View file

@ -61,7 +61,7 @@ do
end
local function can_do_tls(session)
if not session.conn.starttls then
if session.ssl_ctx == false or not session.conn.starttls then
return false;
elseif session.ssl_ctx then
return true;