mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
blockcheck: use USER_AGENT for http
This commit is contained in:
parent
cad3dc383b
commit
c91833f96a
@ -438,7 +438,7 @@ curl_test_http()
|
|||||||
# $1 - ip version : 4/6
|
# $1 - ip version : 4/6
|
||||||
# $2 - domain name
|
# $2 - domain name
|
||||||
local code loc
|
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=$?
|
code=$?
|
||||||
rm -f "$HDRTEMP"
|
rm -f "$HDRTEMP"
|
||||||
return $code
|
return $code
|
||||||
|
Loading…
Reference in New Issue
Block a user