fix: Unhandled dns resolve failure error

This commit is contained in:
gVisor bot 2022-08-13 16:47:24 +08:00
parent 42c3611715
commit 3e649ae8e8

View file

@ -215,6 +215,10 @@ func concurrentDualStackDialContext(ctx context.Context, network, address string
ips, err = resolver.ResolveAllIPProxyServerHost(host) ips, err = resolver.ResolveAllIPProxyServerHost(host)
} }
if err != nil {
return nil, err
}
return concurrentDialContext(ctx, network, ips, port, opt) return concurrentDialContext(ctx, network, ips, port, opt)
} }