From: Matthew Wild Date: Tue, 6 Oct 2009 09:34:13 +0000 (+0100) Subject: mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=a5434101131437c12124d1b4f4a94f856449a27e;p=prosody.git 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 --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);