fix_removeWildcard
parent
2402821f8a
commit
488a89c84a
|
@ -106,14 +106,18 @@ func (r *ResolutionPool) resolveWorker() {
|
|||
continue
|
||||
}
|
||||
|
||||
var skip bool
|
||||
for _, host := range hosts {
|
||||
// Ignore the host if it exists in wildcard ips map
|
||||
if _, ok := r.wildcardIPs[host]; ok { //nolint:staticcheck //search alternatives for "comma ok"
|
||||
continue
|
||||
skip = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
r.Results <- Result{Type: Subdomain, Host: task.Host, IP: hosts[0], Source: task.Source}
|
||||
if !skip {
|
||||
r.Results <- Result{Type: Subdomain, Host: task.Host, IP: hosts[0], Source: task.Source}
|
||||
}
|
||||
}
|
||||
r.wg.Done()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue