Diff

mod_secure_interfaces/mod_secure_interfaces.lua @ 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
parent 2730:cd828b1cb5b9
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