mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix the filter under proxy-group to filter other groups
This commit is contained in:
parent
37cf166d14
commit
06942c67fd
|
@ -29,6 +29,10 @@ func getProvidersProxies(providers []provider.ProxyProvider, touch bool, filter
|
|||
//filterReg = regexp.MustCompile(filter)
|
||||
filterReg = regexp2.MustCompile(filter, 0)
|
||||
for _, p := range proxies {
|
||||
if p.Type() < 8 {
|
||||
matchedProxies = append(matchedProxies, p)
|
||||
}
|
||||
|
||||
//if filterReg.MatchString(p.Name()) {
|
||||
if mat, _ := filterReg.FindStringMatch(p.Name()); mat != nil {
|
||||
matchedProxies = append(matchedProxies, p)
|
||||
|
|
|
@ -14,6 +14,13 @@ const (
|
|||
Direct AdapterType = iota
|
||||
Reject
|
||||
Compatible
|
||||
|
||||
Relay
|
||||
Selector
|
||||
Fallback
|
||||
URLTest
|
||||
LoadBalance
|
||||
|
||||
Shadowsocks
|
||||
ShadowsocksR
|
||||
Snell
|
||||
|
@ -22,12 +29,6 @@ const (
|
|||
Vmess
|
||||
Vless
|
||||
Trojan
|
||||
|
||||
Relay
|
||||
Selector
|
||||
Fallback
|
||||
URLTest
|
||||
LoadBalance
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue
Block a user