mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-24 17:20:49 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user