mod_tls: Treat session.ssl_ctx being false as a signal that TLS is disabled
authorKim Alvefur <zash@zash.se>
Mon, 18 May 2015 19:48:58 +0000 (21:48 +0200)
committerKim Alvefur <zash@zash.se>
Mon, 18 May 2015 19:48:58 +0000 (21:48 +0200)
plugins/mod_tls.lua

index 85fa172a86b04454db4fdb16ff1713b3754afc6c..d1138e1c40e5dbf047648d69944f506f9a21dfa6 100644 (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;