feat: evolve rate-filter to a more generic filter
This commit is contained in:
@ -374,10 +374,15 @@ func (m *Manager) mergeSubscriptions(subs []*model.Subscription) (map[string]int
|
||||
data = map[string]interface{}{}
|
||||
}
|
||||
|
||||
proxies = append(proxies, automation.PrefixProxyNames(sub.Name, data)...)
|
||||
proxyRefs, groupRefs := automation.PrefixProxyNames(sub.Name, data)
|
||||
proxies = append(proxies, proxyRefs...)
|
||||
|
||||
if group := popFirstProxyGroup(data); group != nil {
|
||||
selectionGroups = append(selectionGroups, group)
|
||||
groupRefs = rewritePoppedGroupRef(groupRefs)
|
||||
}
|
||||
proxies = append(proxies, groupRefs...)
|
||||
|
||||
combined = deepMerge(combined, data)
|
||||
}
|
||||
|
||||
@ -405,7 +410,7 @@ func dedupeMatchRule(rulesRaw interface{}) interface{} {
|
||||
filtered = append(filtered, item)
|
||||
}
|
||||
|
||||
return append(filtered, "MATCH,all proxies")
|
||||
return append(filtered, "MATCH,Proxy Selection")
|
||||
}
|
||||
|
||||
// dedupeGeoIPRule keeps only the last occurrence of each "GEOIP,<payload>"
|
||||
|
||||
Reference in New Issue
Block a user