From a98bf2fe7c1b1a5bc97216ee45271ae4a7fed776 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 2 Feb 2022 10:41:39 +0300 Subject: [PATCH] blockcheck: enable tls-max with LibreSSL based curl --- blockcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 81e6b3c..07bb94c 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -267,8 +267,8 @@ curl_supports_tls13() } curl_supports_tlsmax() { - # supported only in OpenSSL - curl --version | grep -Fq OpenSSL || return 1 + # supported only in OpenSSL and LibreSSL + curl --version | grep -Fq -e OpenSSL -e LibreSSL || return 1 # supported since curl 7.54 curl --tls-max 1.2 -Is -o /dev/null http://$LOCALHOST_IPT:65535 2>/dev/null # return code 2 = init failed. likely bad command line options