mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Don't try nameservers from a different AF than our spoofed source.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user