mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-25 01:30:40 +01:00
added timeout and retry for audit script
This commit is contained in:
parent
15f51d9980
commit
a48ef06f64
@ -358,11 +358,11 @@ function check_resource() {
|
|||||||
|
|
||||||
# Use Tor Proxy if set
|
# Use Tor Proxy if set
|
||||||
if [ "$USE_TOR" = true ]; then
|
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
|
error=true
|
||||||
fi
|
fi
|
||||||
else
|
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
|
error=true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user