From 9c0d9c0fc70e54b0af69fb58ad8344c9711570c3 Mon Sep 17 00:00:00 2001 From: gyurix Date: Tue, 16 Aug 2022 12:57:59 +0000 Subject: [PATCH] Added timeout for curl response --- scripts/check_proxy_state.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_proxy_state.sh b/scripts/check_proxy_state.sh index 36149b2..842189b 100755 --- a/scripts/check_proxy_state.sh +++ b/scripts/check_proxy_state.sh @@ -69,7 +69,7 @@ do_proxy_restart() { check_domain() { echo "Checking $DOMAIN name"; - CURL_CHECK="curl -s -o /dev/null -w "%{http_code}" https://$DOMAIN"; + CURL_CHECK="curl -m 5 -s -o /dev/null -w "%{http_code}" https://$DOMAIN"; if [[ "$(eval $CURL_CHECK)" == "200" ]] ; then echo "$DOMAIN accessed successful"; else