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,poecdn.net
|
||||||
DOMAIN-SUFFIX,api.sprig.com
|
DOMAIN-SUFFIX,api.sprig.com
|
||||||
DOMAIN-SUFFIX,www.grepper.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{
|
proxyGroups = append(proxyGroups, entity.ProxyGroup{
|
||||||
Name: "AutoSelect",
|
Name: "AutoSelect",
|
||||||
Type: "url-test",
|
Type: "url-test",
|
||||||
Proxies: proxyNameList,
|
Proxies: removeChargeNode(proxyNameList),
|
||||||
URL: "http://www.gstatic.com/generate_204",
|
URL: "http://www.gstatic.com/generate_204",
|
||||||
Interval: 300,
|
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"}
|
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 = ReorderProxyGroups(proxyGroups, orderedGroupNames)
|
||||||
// 更新配置中的 ProxyGroups
|
// 更新配置中的 ProxyGroups
|
||||||
@ -385,3 +385,12 @@ func ReorderProxyGroups(proxyGroups []entity.ProxyGroup, nameOrder []string) []e
|
|||||||
|
|
||||||
return orderedGroups
|
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