Changeset

3415:6c806a99f802

mod_secure_interfaces: Prevent starttls on connections marked secure (fixes #1274)
author Kim Alvefur <zash@zash.se>
date Sun, 23 Dec 2018 17:11:10 +0100
parents 3414:66bda434d476
children 3416:c6dd65354db0
files mod_secure_interfaces/mod_secure_interfaces.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_secure_interfaces/mod_secure_interfaces.lua	Sun Dec 23 11:00:38 2018 +0000
+++ b/mod_secure_interfaces/mod_secure_interfaces.lua	Sun Dec 23 17:11:10 2018 +0100
@@ -12,6 +12,7 @@
 	if secure_interfaces:contains(localip) then
 		module:log("debug", "Marking session from %s to %s as secure", session.ip or "[?]", localip);
 		session.secure = true;
+		session.conn.starttls = false;
 	else
 		module:log("debug", "Not marking session from %s to %s as secure", session.ip or "[?]", localip);
 	end