mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 18:55:08 +00:00
Don't script-scan targets that are already timed out
This commit is contained in:
parent
0a0e9c4433
commit
28f3b4910a
1 changed files with 3 additions and 0 deletions
|
|
@ -628,6 +628,9 @@ static int run_main (lua_State *L)
|
|||
for (std::vector<Target *>::iterator ti = targets->begin(); ti != targets->end(); ti++)
|
||||
{
|
||||
Target *target = (Target *) *ti;
|
||||
if (target->timedOut(NULL)) {
|
||||
continue;
|
||||
}
|
||||
const char *TargetName = target->TargetName();
|
||||
const char *targetipstr = target->targetipstr();
|
||||
lua_newtable(L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue