mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-09-11 09:35:28 +03:00
exclude root domains from fqdn
This commit is contained in:
parent
f4e5fc0de4
commit
c5ca655207
@ -66,7 +66,9 @@ func parsePotentialDomains(fqdns, domains map[string]struct{}, data string) {
|
||||
if isPotentialDomain(t) {
|
||||
if dn, err := publicsuffix.Parse(extractDomain(t)); err == nil {
|
||||
domains[dn.SLD+"."+dn.TLD] = struct{}{}
|
||||
fqdns[dn.String()] = struct{}{}
|
||||
if dn.TRD != "" {
|
||||
fqdns[dn.String()] = struct{}{}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user