sessionmanager, mod_tls: Mark a session as secure when TLS is active
[prosody.git] / plugins / mod_tls.lua
index b382f318dea9b060722513645d4c57930904e9d1..85dc6bbabaec5028da04f58eee2d75d6d433e530 100644 (file)
@@ -19,6 +19,7 @@ module:add_handler("c2s_unauthed", "starttls", xmlns_starttls,
                                session:reset_stream();
                                session.conn.starttls();
                                session.log("info", "TLS negotiation started...");
+                               session.secure = false;
                        else
                                -- FIXME: What reply?
                                session.log("warn", "Attempt to start TLS, but TLS is not available on this connection");