Retry when transient error occurred

pull/131/head
IceCodeNew 2020-09-24 15:38:59 +08:00
parent 098244b343
commit 5c0bfb6532
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
# 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1
alias curl='curl --false-start --http2 --tlsv1.2 -L'
alias curl='"curl" --retry 5 --retry-delay 10 --retry-max-time 60 --false-start --http2 --tlsv1.2 -L'
# You can modify it to /usr/local/lib/v2ray
V2RAY="/usr/local/share/v2ray"

View File

@ -27,7 +27,7 @@ red=$(tput setaf 1)
green=$(tput setaf 2)
reset=$(tput sgr0)
alias curl='curl --false-start --http2 --tlsv1.2 -L'
alias curl='"curl" --retry 5 --retry-delay 10 --retry-max-time 60 --false-start --http2 --tlsv1.2 -L'
check_if_running_as_root() {
# If you want to run as another user, please modify $UID to be owned by this user