aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-06 10:34:13 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-06 10:34:13 +0100
commitf13dfe04be7529d816f3fd4cbbf063dac2ae3788 (patch)
tree37f527516dbdfb3a8d1fd123df8bd6cdb06a38ef /plugins
parent8baf84f36b9375b6f333cd483965544ef3656bf8 (diff)
downloadprosody-f13dfe04be7529d816f3fd4cbbf063dac2ae3788.tar.gz
prosody-f13dfe04be7529d816f3fd4cbbf063dac2ae3788.zip
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 :)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_tls.lua1
1 files changed, 1 insertions, 0 deletions
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);