mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 20:52:15 +08:00
chore: limit the default url
This commit is contained in:
parent
c1f0ed18ef
commit
e86567ead2
@ -92,10 +92,12 @@ func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, provide
|
|||||||
groupOption.ExpectedStatus = status
|
groupOption.ExpectedStatus = status
|
||||||
testUrl := groupOption.URL
|
testUrl := groupOption.URL
|
||||||
|
|
||||||
|
if groupOption.Type != "select" && groupOption.Type != "relay" {
|
||||||
if groupOption.URL == "" {
|
if groupOption.URL == "" {
|
||||||
groupOption.URL = C.DefaultTestURL
|
groupOption.URL = C.DefaultTestURL
|
||||||
testUrl = groupOption.URL
|
testUrl = groupOption.URL
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(GroupProxies) != 0 {
|
if len(GroupProxies) != 0 {
|
||||||
ps, err := getProxies(proxyMap, GroupProxies)
|
ps, err := getProxies(proxyMap, GroupProxies)
|
||||||
|
Loading…
Reference in New Issue
Block a user