Fix the filter under proxy-group to filter other groups
This commit is contained in:
parent
90b101ba86
commit
187c3607af
2 changed files with 11 additions and 6 deletions
|
@ -29,6 +29,10 @@ func getProvidersProxies(providers []provider.ProxyProvider, touch bool, filter
|
||||||
//filterReg = regexp.MustCompile(filter)
|
//filterReg = regexp.MustCompile(filter)
|
||||||
filterReg = regexp2.MustCompile(filter, 0)
|
filterReg = regexp2.MustCompile(filter, 0)
|
||||||
for _, p := range proxies {
|
for _, p := range proxies {
|
||||||
|
if p.Type() < 8 {
|
||||||
|
matchedProxies = append(matchedProxies, p)
|
||||||
|
}
|
||||||
|
|
||||||
//if filterReg.MatchString(p.Name()) {
|
//if filterReg.MatchString(p.Name()) {
|
||||||
if mat, _ := filterReg.FindStringMatch(p.Name()); mat != nil {
|
if mat, _ := filterReg.FindStringMatch(p.Name()); mat != nil {
|
||||||
matchedProxies = append(matchedProxies, p)
|
matchedProxies = append(matchedProxies, p)
|
||||||
|
|
|
@ -14,6 +14,13 @@ const (
|
||||||
Direct AdapterType = iota
|
Direct AdapterType = iota
|
||||||
Reject
|
Reject
|
||||||
Compatible
|
Compatible
|
||||||
|
|
||||||
|
Relay
|
||||||
|
Selector
|
||||||
|
Fallback
|
||||||
|
URLTest
|
||||||
|
LoadBalance
|
||||||
|
|
||||||
Shadowsocks
|
Shadowsocks
|
||||||
ShadowsocksR
|
ShadowsocksR
|
||||||
Snell
|
Snell
|
||||||
|
@ -22,12 +29,6 @@ const (
|
||||||
Vmess
|
Vmess
|
||||||
Vless
|
Vless
|
||||||
Trojan
|
Trojan
|
||||||
|
|
||||||
Relay
|
|
||||||
Selector
|
|
||||||
Fallback
|
|
||||||
URLTest
|
|
||||||
LoadBalance
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in a new issue