1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 20:29:02 +00:00

Add checks for nmap.address_family == "inet" to scripts that require

that. Patch by Henri Doreau.
This commit is contained in:
david
2011-04-19 18:09:15 +00:00
parent 46c29d3f60
commit ec4db04494
6 changed files with 35 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ require 'stdnse'
require 'bin'
require 'packet'
require 'tab'
require 'nmap'
-- defaults
local DELAY = 0.200
@@ -378,6 +379,10 @@ hostrule = function(host)
end
return false
end
if nmap.address_family() ~= 'inet' then
stdnse.print_debug("%s is IPv4 compatible only.", SCRIPT_NAME)
return false
end
if not host.interface then
return false
end