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