mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
feat (blockcheck): add ask skip timeout
This commit is contained in:
parent
2cd6db3ba5
commit
4deac3e2dc
@ -869,6 +869,10 @@ curl_test()
|
||||
[ $REPEATS -gt 1 ] && echo 'AVAILABLE'
|
||||
else
|
||||
code=$?
|
||||
if [ "$TIMEOUT_FLAG" = "Y" ] && [ $code -eq 28 ]; then
|
||||
echo "Timeout occurred. Interrupting further attempts."
|
||||
break
|
||||
fi
|
||||
[ "$SCANLEVEL" = quick ] && break
|
||||
fi
|
||||
done
|
||||
@ -1588,6 +1592,10 @@ ask_params()
|
||||
[ "$IGNORE_CA" = 1 ] && CURL_OPT=-k
|
||||
}
|
||||
|
||||
TIMEOUT_FLAG=N
|
||||
echo
|
||||
ask_yes_no_var TIMEOUT_FLAG "Interrupt on timeout (Y/N) [default: N]"
|
||||
|
||||
echo
|
||||
echo "sometimes ISPs use multiple DPIs or load balancing. bypass strategies may work unstable."
|
||||
printf "how many times to repeat each test (default: 1) : "
|
||||
|
Loading…
Reference in New Issue
Block a user