mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked...
[prosody.git] / plugins / mod_tls.lua
index e854d67648a41d03346a27bebf39e0c5ded841c6..c2f83a3a059e0e52c99f6aeabded5d893150dffe 100644 (file)
@@ -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);