mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
sessionmanager, mod_tls: Mark a session as secure when TLS is active
This commit is contained in:
parent
762a39c8d0
commit
81fedc9a08
2 changed files with 7 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue