commit
c0505cb1b8
11
start.sh
11
start.sh
|
@ -96,16 +96,9 @@ unset no_proxy
|
|||
echo -e '\n正在检测订阅地址...'
|
||||
Text1="Clash订阅地址可访问!"
|
||||
Text2="Clash订阅地址不可访问!"
|
||||
for i in {1..10}
|
||||
do
|
||||
curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]' &>/dev/null
|
||||
#curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]' &>/dev/null
|
||||
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
|
||||
ReturnStatus=$?
|
||||
if [ $ReturnStatus -eq 0 ]; then
|
||||
break
|
||||
else
|
||||
continue
|
||||
fi
|
||||
done
|
||||
if_success $Text1 $Text2 $ReturnStatus
|
||||
|
||||
# 拉取更新config.yml文件
|
||||
|
|
Loading…
Reference in New Issue
Block a user