Fix: return the first proxy when no proxy valid

This commit is contained in:
gVisor bot 2018-10-06 14:17:50 +08:00
parent 27a17c899b
commit 9aa8e734ac

View file

@ -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() {