From ace47e7c92b77264ef58606e12907fc30cb464d0 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 26 Jul 2020 01:22:23 +0200 Subject: [PATCH] --max-time 10 sec to check official vestacp licences --- bin/v-check-vesta-license | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-check-vesta-license b/bin/v-check-vesta-license index 7fa1a12c..46d474ce 100755 --- a/bin/v-check-vesta-license +++ b/bin/v-check-vesta-license @@ -42,7 +42,7 @@ for str in $modules; do license=$(echo "$str" |cut -f 2 -d \') if [ ! -z "$license" ]; then v_host='https://vestacp.com/checkout' - answer=$(curl -s "$v_host/check.php?licence_key=$license&module=$module") + answer=$(curl --max-time 10 -s "$v_host/check.php?licence_key=$license&module=$module") check_result $? "cant' connect to vestacp.com " 0 echo "$module $license $answer" if [[ "$answer" != '0' ]]; then