add some rules
This commit is contained in:
parent
5ad4f4f37a
commit
276eedf205
@ -5,3 +5,7 @@ DOMAIN-SUFFIX,deepl.com
|
||||
DOMAIN-SUFFIX,poecdn.net
|
||||
DOMAIN-SUFFIX,api.sprig.com
|
||||
DOMAIN-SUFFIX,www.grepper.com
|
||||
DOMAIN-SUFFIX,cdn.sstatic.net
|
||||
DOMAIN-SUFFIX,cdn.cookielaw.org
|
||||
DOMAIN-SUFFIX,i.sstatic.net
|
||||
DOMAIN-SUFFIX,stackexchange.com
|
||||
|
||||
@ -95,7 +95,7 @@ func GenerateConfig() {
|
||||
proxyGroups = append(proxyGroups, entity.ProxyGroup{
|
||||
Name: "AutoSelect",
|
||||
Type: "url-test",
|
||||
Proxies: proxyNameList,
|
||||
Proxies: removeChargeNode(proxyNameList),
|
||||
URL: "http://www.gstatic.com/generate_204",
|
||||
Interval: 300,
|
||||
})
|
||||
@ -144,7 +144,7 @@ func GenerateConfig() {
|
||||
}
|
||||
orderedGroupNames := []string{"AutoSelect", "PROXY", "Final", "OpenAi", "Claude", "ClaudeAI", "Gemini", "Telegram", "Bilibili", "BilibiliHMT", "Steam", "SteamCN", "SteamRegionCheck", "Porn", "Pornhub", "Pixiv", "JetBrains", "PrivateTracker", "Microsoft", "Bing", "Apple", "AppleNews", "AppleTV", "Github", "Google", "GoogleCNProxyIP", "GoogleEarth", "GoogleFCM", "Youtube", "YoutubeMusic", "Tiktok", "Instagram", "Line", "LineTV", "Wikipedia", "Zoom", "Epic", "MIUIPrivacy", "MI"}
|
||||
|
||||
dealOrder(rulesList, orderedGroupNames)
|
||||
dealOrder(rulesList, append([]string{"AdditionalProxy", "CherrDirect", "CherrProxy", "VPN"}, orderedGroupNames...))
|
||||
|
||||
proxyGroups = ReorderProxyGroups(proxyGroups, orderedGroupNames)
|
||||
// 更新配置中的 ProxyGroups
|
||||
@ -385,3 +385,12 @@ func ReorderProxyGroups(proxyGroups []entity.ProxyGroup, nameOrder []string) []e
|
||||
|
||||
return orderedGroups
|
||||
}
|
||||
func removeChargeNode(proxyNameList []string) []string {
|
||||
newList := []string{}
|
||||
for _, name := range proxyNameList {
|
||||
if !strings.Contains(name, "计费") {
|
||||
newList = append(newList, name)
|
||||
}
|
||||
}
|
||||
return newList
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user