mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-19 14:40:34 +05:00
blockcheck: print redirection http code
This commit is contained in:
parent
a604ba1ac5
commit
9a7d1e8e56
@ -302,7 +302,7 @@ curl_test_http()
|
|||||||
loc=$(hdrfile_location "$HDRTEMP")
|
loc=$(hdrfile_location "$HDRTEMP")
|
||||||
echo "$loc" | grep -qE "^https?://.*$2(/|$)" ||
|
echo "$loc" | grep -qE "^https?://.*$2(/|$)" ||
|
||||||
echo "$loc" | grep -vqE '^https?://' || {
|
echo "$loc" | grep -vqE '^https?://' || {
|
||||||
echo suspicious redirection to : $loc
|
echo suspicious redirection $code to : $loc
|
||||||
rm -f "$HDRTEMP"
|
rm -f "$HDRTEMP"
|
||||||
return 254
|
return 254
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user