1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix error in targets-sniffer: interface name not set

This commit is contained in:
dmiller
2024-06-20 20:14:29 +00:00
parent 4b28defac6
commit 32c1272bfa

View File

@@ -90,9 +90,11 @@ action = function()
stdnse.get_script_interfaces(collect_interface)
end
if interface_info==nil then -- Check if we have the interface information
if not interface_info then -- Check if we have the interface information
stdnse.debug1("Error: Unable to get interface info. Did you specify the correct interface using 'targets-sniffer.interface=<interface>' or '-e <interface>'?")
return
elseif not interface then
interface = interface_info.shortname
end