From 26ba5d3786ba505cc2a871d3589426720b5ff0bb Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 21 Jun 2021 21:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/utils/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/http.go b/pkg/utils/http.go index 3ae3a4c..82408f1 100644 --- a/pkg/utils/http.go +++ b/pkg/utils/http.go @@ -56,7 +56,7 @@ func resolveIP(addr string, ipv6 bool) (string, error) { var resolveLock sync.RWMutex var ipv4Resolved, ipv6Resolved bool - wg.Add(len(dnsServers) + 1) + wg.Add(len(dnsServers)) go func() { }()