|
|
|
@ -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) : " |
|
|
|
|