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

@ -53,6 +53,10 @@ func (u *URLTest) Set(name string) error {
return nil
}
func (u *URLTest) ForceSet(name string) {
u.selected = name
}
// DialContext implements C.ProxyAdapter
func (u *URLTest) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (c C.Conn, err error) {
proxy := u.fast(true)