From 50b39d006b102c405ca85644cba06e446fbcad8d Mon Sep 17 00:00:00 2001 From: Lutchy Horace Date: Wed, 17 Mar 2021 18:15:24 -0400 Subject: [PATCH] Add a curl timeout --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index e27d277..83952f3 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -32,7 +32,7 @@ function validate_host if [ $? -eq 0 ]; then debug "Checking host is resolvable: $1" # Add --insecure becase remote servers may sometimes have self-signed certs - if ! curl --insecure $1 > /dev/null 2>&1; then + if ! curl --insecure --max-time 5.5 $1 > /dev/null 2>&1; then _ret=1 debug "Host '$1' is not resolvable!" fi