From f0a9246fd9e5a4161f95705af6a6e9cb694a352c Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 2 Feb 2022 10:59:44 +0300 Subject: [PATCH] blockcheck: do not scream if TLS1.3 and tls-max both not supported --- blockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockcheck.sh b/blockcheck.sh index 07bb94c..f31dfe3 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -737,7 +737,7 @@ ask_params() ENABLE_HTTP=1 ask_yes_no_var ENABLE_HTTP "check http" - [ -n "$TLSMAX12" ] || echo "WARNING ! your curl version or TLS library does not support tls-max option. TLS 1.2 tests may use TLS 1.3+ protocols" + [ -z "$TLSMAX12" -a -n "$TLS13" ] && echo "WARNING ! your curl version or TLS library does not support tls-max option. TLS 1.2 tests may use TLS 1.3+ protocols" ENABLE_HTTPS_TLS12=1 ask_yes_no_var ENABLE_HTTPS_TLS12 "check https tls 1.2"