mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-21 02:38:05 +08:00
Fix: proxy provider filter validation (#2198)
This commit is contained in:
parent
fc5c9b931b
commit
91c22b16bf
@ -129,7 +129,7 @@ func NewProxySetProvider(name string, interval time.Duration, filter string, veh
|
||||
|
||||
proxies := []C.Proxy{}
|
||||
for idx, mapping := range schema.Proxies {
|
||||
if name, ok := mapping["name"]; ok && len(filter) > 0 && !filterReg.MatchString(name.(string)) {
|
||||
if name, ok := mapping["name"].(string); ok && len(filter) > 0 && !filterReg.MatchString(name) {
|
||||
continue
|
||||
}
|
||||
proxy, err := adapter.ParseProxy(mapping)
|
||||
|
Loading…
Reference in New Issue
Block a user