chore: limit the default url

This commit is contained in:
xishang0128 2024-01-20 19:43:10 +08:00
parent c1f0ed18ef
commit e86567ead2
No known key found for this signature in database
GPG key ID: 44A1E10B5ADF68CB

View file

@ -92,9 +92,11 @@ func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, provide
groupOption.ExpectedStatus = status
testUrl := groupOption.URL
if groupOption.URL == "" {
groupOption.URL = C.DefaultTestURL
testUrl = groupOption.URL
if groupOption.Type != "select" && groupOption.Type != "relay" {
if groupOption.URL == "" {
groupOption.URL = C.DefaultTestURL
testUrl = groupOption.URL
}
}
if len(GroupProxies) != 0 {