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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user