From 32fc990c6890fa0cc64f8db5870851e33e2fbf9f Mon Sep 17 00:00:00 2001 From: Skyxim 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) }