added timeout and retry for audit script

This commit is contained in:
nobody 2022-07-16 07:53:59 +02:00
parent 15f51d9980
commit a48ef06f64
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 2 additions and 2 deletions

View File

@ -358,11 +358,11 @@ function check_resource() {
# Use Tor Proxy if set
if [ "$USE_TOR" = true ]; then
if ! torsocks wget -t 3 -qO ./tmp "$url"; then
if ! torsocks wget --retry-connrefused --waitretry=30 --read-timeout=30 --timeout=30 -t 10 -qO ./tmp "$url"; then
error=true
fi
else
if ! wget -t 3 -qO ./tmp "$url"; then
if ! wget --retry-connrefused --waitretry=30 --read-timeout=30 --timeout=30 -t 10 -qO ./tmp "$url"; then
error=true
fi
fi