diff options
author | Matthew Wild <mwild1@gmail.com> | 2021-07-06 08:18:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2021-07-06 08:18:28 +0100 |
commit | 63673115198bfb40637a0c4ff847dbeb42f695ff (patch) | |
tree | 71b6ad2778197148fd13d7f13561247250406829 | |
parent | 00735e47597c877f16bdbcd57a7746568e881c99 (diff) | |
download | prosody-63673115198bfb40637a0c4ff847dbeb42f695ff.tar.gz prosody-63673115198bfb40637a0c4ff847dbeb42f695ff.zip |
mod_c2s: Indicate stream secure state in error text when no stream features to offer
-rw-r--r-- | plugins/mod_c2s.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index f19f9df5..f9c2e9fb 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -108,7 +108,10 @@ function stream_callbacks.streamopened(session, attr) 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 |