From e86567ead2579cef92b0408b979251f03fdf69f4 Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Sat, 20 Jan 2024 19:43:10 +0800 Subject: [PATCH] chore: limit the default url --- adapter/outboundgroup/parser.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/adapter/outboundgroup/parser.go b/adapter/outboundgroup/parser.go index 84b7ccd6..6f44b8ea 100644 --- a/adapter/outboundgroup/parser.go +++ b/adapter/outboundgroup/parser.go @@ -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 {