mod_c2s: Indicate stream secure state in error text when no stream features to offer 0.11
authorMatthew Wild <mwild1@gmail.com>
Tue, 06 Jul 2021 08:18:28 +0100
branch0.11
changeset 11750 68faaf936f6d
parent 11716 d117b92fd8e4
child 11751 9f723b54e111
child 11752 88ba05494d17
mod_c2s: Indicate stream secure state in error text when no stream features to offer
plugins/mod_c2s.lua
--- 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