# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1625555908 -3600
# Node ID 68faaf936f6d9601be6477fd48bfc1a746ab0ef3
# Parent  d117b92fd8e459170a98a8dece7f3930f4b6aed7
mod_c2s: Indicate stream secure state in error text when no stream features to offer

diff -r d117b92fd8e4 -r 68faaf936f6d 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