aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-07-06 08:18:28 +0100
committerMatthew Wild <mwild1@gmail.com>2021-07-06 08:18:28 +0100
commit63673115198bfb40637a0c4ff847dbeb42f695ff (patch)
tree71b6ad2778197148fd13d7f13561247250406829 /plugins/mod_c2s.lua
parent00735e47597c877f16bdbcd57a7746568e881c99 (diff)
downloadprosody-63673115198bfb40637a0c4ff847dbeb42f695ff.tar.gz
prosody-63673115198bfb40637a0c4ff847dbeb42f695ff.zip
mod_c2s: Indicate stream secure state in error text when no stream features to offer
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua5
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