author | Kim Alvefur <zash@zash.se> |
Sat, 25 Feb 2017 01:16:31 +0100 | |
changeset 7916 | 64daa21450f9 |
parent 7915 | 2c204ba8e52e |
child 7917 | a6eb3b6bf903 |
--- a/plugins/mod_tls.lua Wed Feb 22 22:56:28 2017 +0100 +++ b/plugins/mod_tls.lua Sat Feb 25 01:16:31 2017 +0100 @@ -63,7 +63,9 @@ local function can_do_tls(session) if not session.conn.starttls then - session.log("debug", "Underlying connection does not support STARTTLS"); + if not session.secure then + session.log("debug", "Underlying connection does not support STARTTLS"); + end return false; elseif session.ssl_ctx ~= nil then return session.ssl_ctx;