Fix: ignore empty dns server error

This commit is contained in:
gVisor bot 2022-01-05 11:41:31 +08:00
parent 91c5381222
commit 45037114e3

View file

@ -60,6 +60,10 @@ func ReCreateServer(addr string, resolver *Resolver, mapper *ResolverEnhancer) {
address = "" address = ""
} }
if addr == "" {
return
}
var err error var err error
defer func() { defer func() {
if err != nil { if err != nil {