mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Don't try nameservers from a different AF than our spoofed source.
This commit is contained in:
parent
59de1a50de
commit
d1b34d407b
1 changed files with 2 additions and 1 deletions
|
|
@ -840,7 +840,8 @@ static void add_dns_server(char *ipaddrs) {
|
|||
|
||||
for (hostname = strtok(ipaddrs, " ,"); hostname != NULL; hostname = strtok(NULL, " ,")) {
|
||||
|
||||
if (resolve(hostname, 0, (struct sockaddr_storage *) &addr, &addr_len, PF_UNSPEC) != 0)
|
||||
if (resolve(hostname, 0, (struct sockaddr_storage *) &addr, &addr_len,
|
||||
o.spoofsource ? o.af() : PF_UNSPEC) != 0)
|
||||
continue;
|
||||
|
||||
for(servI = servs.begin(); servI != servs.end(); servI++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue