更新订阅地址可用性检测方式。
This commit is contained in:
parent
96f70b9989
commit
e289381339
2
start.sh
2
start.sh
|
@ -47,7 +47,7 @@ URL='更改为你的clash订阅地址'
|
|||
# 检查url是否有效
|
||||
Text1="Clash订阅地址可访问!"
|
||||
Text2="Clash订阅地址不可访问!"
|
||||
curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]'
|
||||
curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $URL | grep '[23][0-9][0-9]' &>/dev/null
|
||||
if_success $Text1 $Text2
|
||||
|
||||
# 临时取消环境变量
|
||||
|
|
Loading…
Reference in New Issue
Block a user