mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-19 16:38:16 +08:00
Fix: return the first proxy when no proxy valid
This commit is contained in:
parent
27a17c899b
commit
9aa8e734ac
@ -60,7 +60,7 @@ func (f *Fallback) Generator(metadata *C.Metadata) (adapter C.ProxyAdapter, err
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
return nil, errors.New("There are no valid proxy")
|
return f.proxies[0].RawProxy.Generator(metadata)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Fallback) Close() {
|
func (f *Fallback) Close() {
|
||||||
|
Loading…
Reference in New Issue
Block a user