From 63673115198bfb40637a0c4ff847dbeb42f695ff Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 6 Jul 2021 08:18:28 +0100 Subject: mod_c2s: Indicate stream secure state in error text when no stream features to offer --- plugins/mod_c2s.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3