mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Don't script-scan targets that are already timed out
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user