From d7e6e3fb6044046d8fba243a1fa7979dc72100c2 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 23 Jul 2026 13:45:17 +0300 Subject: [PATCH] blockcheck2: disable tls1.3 and quic tests in batch mode if curl does not support them --- blockcheck2.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/blockcheck2.sh b/blockcheck2.sh index cea6d4c..7347c81 100755 --- a/blockcheck2.sh +++ b/blockcheck2.sh @@ -1588,10 +1588,12 @@ ask_params() echo "TLS 1.3 only strategy is better than nothing." ask_yes_no_var ENABLE_HTTPS_TLS13 "check https tls 1.3" } - else + fi + } + [ "$ENABLE_HTTPS_TLS13" = 1 -a -z "$TLS13" ] && { echo echo "installed curl version does not support TLS 1.3 . tests disabled." - fi + ENABLE_HTTPS_TLS13=0 } [ -n "$ENABLE_HTTP3" ] || { @@ -1603,11 +1605,13 @@ ask_params() echo "make sure target domain(s) support QUIC or result will be negative in any case" ask_yes_no_var ENABLE_HTTP3 "check http3 QUIC" } - else - echo - echo "installed curl version does not support http3 QUIC. tests disabled." fi } + [ "$ENABLE_HTTP3" = 1 -a -z "$HTTP3" ] && { + echo + echo "WARNING ! installed curl version does not support http3 QUIC. tests disabled." + ENABLE_HTTP3=0 + } [ -n "$REPEATS" ] || { [ "$BATCH" = 1 ] || {