diff --git a/adapter/outboundgroup/groupbase.go b/adapter/outboundgroup/groupbase.go index 0c9ea02c..fbe887e3 100644 --- a/adapter/outboundgroup/groupbase.go +++ b/adapter/outboundgroup/groupbase.go @@ -136,6 +136,13 @@ func (gb *GroupBase) GetProxies(touch bool) []C.Proxy { } } } + for _, p := range proxies { // add not matched proxies at the end + name := p.Name() + if _, ok := proxiesSet[name]; !ok { + proxiesSet[name] = struct{}{} + newProxies = append(newProxies, p) + } + } proxies = newProxies }