From d1d57772edaffabd33d1fca66fae83992eb7e2a3 Mon Sep 17 00:00:00 2001 From: nitezs Date: Wed, 13 Sep 2023 14:46:23 +0800 Subject: [PATCH] update --- utils/proxy.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/proxy.go b/utils/proxy.go index dfb54dc..9283e6e 100644 --- a/utils/proxy.go +++ b/utils/proxy.go @@ -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) { @@ -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 } } }