Fix: return the first proxy when no proxy valid
This commit is contained in:
parent
8fff0968bf
commit
7b80377849
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func (f *Fallback) Generator(metadata *C.Metadata) (adapter C.ProxyAdapter, err
|
|||
}
|
||||
return
|
||||
}
|
||||
return nil, errors.New("There are no valid proxy")
|
||||
return f.proxies[0].RawProxy.Generator(metadata)
|
||||
}
|
||||
|
||||
func (f *Fallback) Close() {
|
||||
|
|
Loading…
Reference in a new issue