fix_removeWildcard

master
xuc2 2021-01-11 19:09:34 +08:00
parent 2402821f8a
commit 488a89c84a
1 changed files with 6 additions and 2 deletions

View File

@ -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()
} }