Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed Sep 13, 2023
1 parent d151290 commit d1d5777
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var skipGroups = map[string]bool{
"手动切换": true,
"全球直连": true,
"广告拦截": true,
"应用进化": true,
"应用净化": true,
}

func AddProxy(sub *model.Subscription, autotest bool, lazy bool, proxies ...model.Proxy) {
Expand Down Expand Up @@ -87,7 +87,10 @@ func AddProxy(sub *model.Subscription, autotest bool, lazy bool, proxies ...mode
continue
}
if !skipGroups[sub.ProxyGroups[i].Name] {
sub.ProxyGroups[i].Proxies = append(newCountryGroupNames, sub.ProxyGroups[i].Proxies...)
combined := make([]string, len(newCountryGroupNames)+len(sub.ProxyGroups[i].Proxies))
copy(combined, newCountryGroupNames)
copy(combined[len(newCountryGroupNames):], sub.ProxyGroups[i].Proxies)
sub.ProxyGroups[i].Proxies = combined
}
}
}
Expand Down

0 comments on commit d1d5777

Please sign in to comment.