mod_c2s: Indicate stream secure state in error text when no stream features to offer
--- 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