1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-24 11:44:42 -05:00
This commit is contained in:
Nite07 2023-09-13 14:46:23 +08:00
parent d1512908b8
commit d1d57772ed

View File

@ -31,7 +31,7 @@ var skipGroups = map[string]bool{
"手动切换": true, "手动切换": true,
"全球直连": true, "全球直连": true,
"广告拦截": true, "广告拦截": true,
"应用化": true, "应用化": true,
} }
func AddProxy(sub *model.Subscription, autotest bool, lazy bool, proxies ...model.Proxy) { func AddProxy(sub *model.Subscription, autotest bool, lazy bool, proxies ...model.Proxy) {
@ -87,7 +87,10 @@ func AddProxy(sub *model.Subscription, autotest bool, lazy bool, proxies ...mode
continue continue
} }
if !skipGroups[sub.ProxyGroups[i].Name] { 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
} }
} }
} }