V6.2.6 优先使用 wget-ssl

This commit is contained in:
Hyy2001X 2021-06-24 20:20:27 +08:00
parent 23dd69aebf
commit 24b2ad5133
1 changed files with 7 additions and 7 deletions

View File

@ -547,12 +547,6 @@ AutoUpdate_Main() {
[[ ! -f ${Custom_Variable} ]] && touch ${Custom_Variable}
LOAD_VARIABLE ${Default_Variable} ${Custom_Variable}
[[ $(CHECK_PKG uclient-fetch) == true ]] && {
Downloader="uclient-fetch -q --no-check-certificate --timeout 5"
} || {
Downloader="wget -q --no-check-certificate --timeout 5"
}
[[ -z $* ]] && PREPARE_UPGRADES $*
[[ $1 =~ path= && ! $* =~ -x && ! $* =~ -U ]] && PREPARE_UPGRADES $*
@ -702,7 +696,7 @@ AutoUpdate_Main() {
done
}
Version=V6.2.5
Version=V6.2.6
log_Path=/tmp
Update_Logs_Path=/tmp
Upgrade_Command=sysupgrade
@ -716,4 +710,10 @@ Blue="\e[34m"
Grey="\e[36m"
Green="\e[32m"
if [[ $(CHECK_PKG wget-ssl) == true ]];then
Downloader="wget-ssl -q --no-check-certificate -T 5 --tries 1 --no-dns-cache -x"
else
Downloader="uclient-fetch -q --no-check-certificate --timeout 5"
fi
AutoUpdate_Main $*