mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Avoid scanning targets we can't reach anyway.
See d8ff55b72e (commitcomment-30112744)
This commit is contained in:
parent
6c4e02e89d
commit
42661c4447
1 changed files with 2 additions and 0 deletions
|
|
@ -294,6 +294,8 @@ static void massping(Target *hostbatch[], int num_hosts, struct scan_lists *port
|
|||
}
|
||||
|
||||
for (i = 0; i < num_hosts; i++) {
|
||||
if (hostbatch[i]->flags & HOST_DOWN)
|
||||
continue;
|
||||
initialize_timeout_info(&hostbatch[i]->to);
|
||||
targets.push_back(hostbatch[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue