From 3e649ae8e89bc54b80013839ad437b8d03d26910 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 13 Aug 2022 16:47:24 +0800 Subject: [PATCH] fix: Unhandled dns resolve failure error --- component/dialer/dialer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/component/dialer/dialer.go b/component/dialer/dialer.go index a43fa296..521479b0 100644 --- a/component/dialer/dialer.go +++ b/component/dialer/dialer.go @@ -215,6 +215,10 @@ func concurrentDualStackDialContext(ctx context.Context, network, address string ips, err = resolver.ResolveAllIPProxyServerHost(host) } + if err != nil { + return nil, err + } + return concurrentDialContext(ctx, network, ips, port, opt) }