1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-19 12:49:02 +00:00

Check target.ALLOW_NEW_TARGETS.

This commit is contained in:
david
2011-10-07 09:51:10 +00:00
parent 2a696bc6ef
commit 1c297f9138
3 changed files with 9 additions and 3 deletions

View File

@@ -122,7 +122,9 @@ local function single_interface_broadcast(if_nfo, results)
if reply.mac_dst == src_mac then
local target_str = packet.toipv6(reply.ip6_src)
if not results[target_str] then
target.add(target_str)
if target.ALLOW_NEW_TARGETS then
target.add(target_str)
end
results[#results + 1] = { address = target_str, mac = format_mac(reply.mac_src), iface = if_nfo.device }
results[target_str] = true
end