From a48ef06f647a5dfee6774fad54046fc10714b4c7 Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 16 Jul 2022 07:53:59 +0200 Subject: [PATCH] added timeout and retry for audit script --- audit/audit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audit/audit.sh b/audit/audit.sh index 143480c9..78424d04 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -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