From 25221177c905ff8e6ca021d0b16fafb789ea1659 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 9 Dec 2021 16:54:12 +0300 Subject: [PATCH] blockcheck: optimize --- blockcheck.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index bef5d64..c335134 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -229,12 +229,9 @@ check_domain_bypass() local pid strategy tests='fake' ttls s sec="$2" found [ "$sec" = 0 ] && { - s="--hostcase" - nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}" - s="--hostnospace" - nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}" - s="--domcase" - nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}" + for s in '--hostcase' '--hostnospace' '--domcase'; do + nfqws_curl_test $1 $3 $s && strategy="${strategy:-$s}" + done } s="--dpi-desync=split2"