From f13dfe04be7529d816f3fd4cbbf063dac2ae3788 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 6 Oct 2009 10:34:13 +0100 Subject: 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 :) --- plugins/mod_tls.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index e854d676..c2f83a3a 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -87,5 +87,6 @@ module:hook_stanza(xmlns_starttls, "proceed", 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); -- cgit v1.2.3