mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03: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")
|
||||
echo "$loc" | grep -qE "^https?://.*$2(/|$)" ||
|
||||
echo "$loc" | grep -vqE '^https?://' || {
|
||||
echo suspicious redirection to : $loc
|
||||
echo suspicious redirection $code to : $loc
|
||||
rm -f "$HDRTEMP"
|
||||
return 254
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user