1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-24 01:08:20 +01:00

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

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