From 68a70526e598439585f3c950f1b87c65d00d97c1 Mon Sep 17 00:00:00 2001 From: shadowabi <50265741+shadowabi@users.noreply.github.com> Date: Wed, 15 May 2024 11:01:04 +0800 Subject: [PATCH] bug fix --- pkg/req.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/req.go b/pkg/req.go index acdfd8e..d6d2f95 100644 --- a/pkg/req.go +++ b/pkg/req.go @@ -61,6 +61,7 @@ func SearchEndpoint(client *http.Client, portList []string, recordList ...Record if len(record.srvRecords) != 0 { resultsChan2 := make(chan ResponseData, cap(record.srvRecords)) for _, srv := range record.srvRecords { + wg2.Add(1) go func(srv *net.SRV, port string, wg *sync.WaitGroup) { defer wg.Done() //logrus.Debug(srv.Target, ":", port, " Working")