fixing golint

This commit is contained in:
Mzack9999 2020-10-02 16:53:32 +02:00
parent 2c44440bad
commit 605735afbb

View File

@ -290,15 +290,15 @@ func process(t string, wg *sizedwaitgroup.SizedWaitGroup, hp *httpx.HTTPX, proto
wg.Add() wg.Add()
go func(port int, method, protocol string) { go func(port int, method, protocol string) {
defer wg.Done() defer wg.Done()
r := analyze(hp, wantedProtocol, target, port, method, scanopts) r := analyze(hp, protocol, target, port, method, scanopts)
output <- r output <- r
if scanopts.TLSProbe && r.TLSData != nil { if scanopts.TLSProbe && r.TLSData != nil {
scanopts.TLSProbe = false scanopts.TLSProbe = false
for _, tt := range r.TLSData.DNSNames { for _, tt := range r.TLSData.DNSNames {
process(tt, wg, hp, wantedProtocol, scanopts, output) process(tt, wg, hp, protocol, scanopts, output)
} }
for _, tt := range r.TLSData.CommonName { for _, tt := range r.TLSData.CommonName {
process(tt, wg, hp, wantedProtocol, scanopts, output) process(tt, wg, hp, protocol, scanopts, output)
} }
} }
}(port, method, wantedProtocol) }(port, method, wantedProtocol)