From c91833f96a8eb1a1beaa86eff51356a90d95ce55 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 14 Mar 2024 18:56:29 +0300 Subject: [PATCH] blockcheck: use USER_AGENT for http --- blockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockcheck.sh b/blockcheck.sh index c6a26ee..e405e91 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -438,7 +438,7 @@ curl_test_http() # $1 - ip version : 4/6 # $2 - domain name local code loc - curl_with_dig $1 $2 -SsD "$HDRTEMP" --max-time $CURL_MAX_TIME $CURL_OPT "http://$2" -o /dev/null 2>&1 || { + curl_with_dig $1 $2 -SsD "$HDRTEMP" -A "$USER_AGENT" --max-time $CURL_MAX_TIME $CURL_OPT "http://$2" -o /dev/null 2>&1 || { code=$? rm -f "$HDRTEMP" return $code