mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
blockcheck: stop on fatal curl errors
This commit is contained in:
parent
cefb245f6d
commit
627b24f36d
@ -264,6 +264,8 @@ check_domain()
|
||||
# $2 - port
|
||||
# $3 - domain
|
||||
|
||||
local code
|
||||
|
||||
echo
|
||||
echo \* $1 $3
|
||||
|
||||
@ -272,7 +274,11 @@ check_domain()
|
||||
killall nfqws 2>/dev/null
|
||||
|
||||
echo "- checking without DPI bypass"
|
||||
curl_test $1 $3 && return 0
|
||||
curl_test $1 $3 && return
|
||||
code=$?
|
||||
for c in 1 2 3 4 6 27 ; do
|
||||
[ $code = $c ] && return
|
||||
done
|
||||
|
||||
echo preparing nfqws redirection
|
||||
nfqws_ipt_prepare $2
|
||||
|
Loading…
Reference in New Issue
Block a user