chore: force set SelectAble when start load cache

This commit is contained in:
wwqgtxx
2023-04-24 08:07:17 +08:00
parent 7f1b7e7521
commit 72a67ac534
5 changed files with 14 additions and 1 deletions

View File

@ -78,6 +78,10 @@ func (s *Selector) Set(name string) error {
return errors.New("proxy not exist")
}
func (s *Selector) ForceSet(name string) {
s.selected = name
}
// Unwrap implements C.ProxyAdapter
func (s *Selector) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
return s.selectedProxy(touch)