blockcheck: optimize

This commit is contained in:
bol-van 2021-12-09 16:54:12 +03:00
parent 68c856e2fc
commit 25221177c9

View File

@ -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"