# HG changeset patch # User Matthew Wild # Date 1254821653 -3600 # Node ID e1c5b537f240f2be922fe348f576fb2c5425bee2 # Parent 6897bd311afa73ff0c67eee045b52e09a40a5d67 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 :) diff -r 6897bd311afa -r e1c5b537f240 plugins/mod_tls.lua --- 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);