Avoid scanning targets we can't reach anyway.

See d8ff55b72e (commitcomment-30112744)
This commit is contained in:
dmiller 2018-08-16 22:38:12 +00:00
parent 6c4e02e89d
commit 42661c4447

View file

@ -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]);
}