Diff

plugins/mod_tls.lua @ 1926:e1c5b537f240

mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked secure later. Fixes missing (encrypted) for outgoing sessions in s2s:show(). Thanks albert, McKael :)
author Matthew Wild <mwild1@gmail.com>
date Tue, 06 Oct 2009 10:34:13 +0100
parent 1913:da49a59dff7c
child 1938:82342e7f1b84
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Mon Oct 05 22:15:32 2009 +0100
+++ b/plugins/mod_tls.lua	Tue Oct 06 10:34:13 2009 +0100
@@ -87,5 +87,6 @@
 			local format, to_host, from_host = string.format, session.to_host, session.from_host;
 			session:reset_stream();
 			session.conn.starttls(true);
+			session.secure = false;
 			return true;
 		end);