mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Remove "hardmatched" argument from calls to nmap.set_port_version.
This is the default and can be omitted. Seeing as the value of this argument was "hardmatched" in 100% of cases, we're better off pretending the parameter doesn't exist.
This commit is contained in:
@@ -2012,7 +2012,7 @@ Helper =
|
||||
-- Give some version info back to Nmap
|
||||
if ( instance.port and instance.version ) then
|
||||
instance.version:PopulateNmapPortVersion( instance.port )
|
||||
--nmap.set_port_version( instance.host, instance.port, "hardmatched" )
|
||||
--nmap.set_port_version( instance.host, instance.port)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -2030,7 +2030,7 @@ Helper =
|
||||
-- Give some version info back to Nmap
|
||||
if ( instance.port and instance.version ) then
|
||||
instance.version:PopulateNmapPortVersion( instance.port )
|
||||
nmap.set_port_version( host, instance.port, "hardmatched" )
|
||||
nmap.set_port_version( host, instance.port)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2069,7 +2069,7 @@ Helper =
|
||||
-- Give some version info back to Nmap
|
||||
if ( instance.port and instance.version ) then
|
||||
instance.version:PopulateNmapPortVersion( instance.port )
|
||||
nmap.set_port_version( host, instance.port, "hardmatched" )
|
||||
nmap.set_port_version( host, instance.port)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user