Software /
code /
prosody
Changeset
11746:68faaf936f6d 0.11
mod_c2s: Indicate stream secure state in error text when no stream features to offer
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 06 Jul 2021 08:18:28 +0100 |
parents | 11712:d117b92fd8e4 |
children | 11747:9f723b54e111 11748:88ba05494d17 |
files | plugins/mod_c2s.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Thu Jul 22 17:18:39 2021 +0200 +++ b/plugins/mod_c2s.lua Tue Jul 06 08:18:28 2021 +0100 @@ -108,7 +108,10 @@ send(features); else (session.log or log)("warn", "No stream features to offer"); - session:close{ condition = "undefined-condition", text = "No stream features to proceed with" }; + session:close({ + condition = "undefined-condition"; + text = "No stream features to proceed with on "..(session.secure and "" or "in").."secure stream"; + }); end end