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 :)

vault/0.11
Matthew Wild 16 years ago
parent 8baf84f36b
commit f13dfe04be
  1. 1
      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);

Loading…
Cancel
Save