Merge pull request #90 from wanhebin/dev

Update start.sh
This commit is contained in:
wanhebin 2023-06-17 15:07:55 +08:00 committed by GitHub
commit c0505cb1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,16 +96,9 @@ unset no_proxy
echo -e '\n正在检测订阅地址...' echo -e '\n正在检测订阅地址...'
Text1="Clash订阅地址可访问" Text1="Clash订阅地址可访问"
Text2="Clash订阅地址不可访问" Text2="Clash订阅地址不可访问"
for i in {1..10} #curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]' &>/dev/null
do curl -o /dev/null -L -k -sS --retry 5 -m 10 --connect-timeout 10 -w "%{http_code}" $URL | grep -E '^[23][0-9]{2}$' &>/dev/null
curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]' &>/dev/null ReturnStatus=$?
ReturnStatus=$?
if [ $ReturnStatus -eq 0 ]; then
break
else
continue
fi
done
if_success $Text1 $Text2 $ReturnStatus if_success $Text1 $Text2 $ReturnStatus
# 拉取更新config.yml文件 # 拉取更新config.yml文件