From c8380335cbdea02965876b443c070ff8cd048956 Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Mon, 19 Aug 2024 16:02:43 +0800 Subject: [PATCH] chore: improve `include-all-proxies` compatibility --- adapter/outboundgroup/parser.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapter/outboundgroup/parser.go b/adapter/outboundgroup/parser.go index efc38aab..b073c4bb 100644 --- a/adapter/outboundgroup/parser.go +++ b/adapter/outboundgroup/parser.go @@ -88,6 +88,9 @@ func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, provide } else { groupOption.Proxies = append(groupOption.Proxies, AllProxies...) } + if len(groupOption.Proxies) == 0 && len(groupOption.Use) == 0 { + groupOption.Proxies = []string{"COMPATIBLE"} + } } if len(groupOption.Proxies) == 0 && len(groupOption.Use) == 0 {