mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +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)
|
stdnse.get_script_interfaces(collect_interface)
|
||||||
end
|
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>'?")
|
stdnse.debug1("Error: Unable to get interface info. Did you specify the correct interface using 'targets-sniffer.interface=<interface>' or '-e <interface>'?")
|
||||||
return
|
return
|
||||||
|
elseif not interface then
|
||||||
|
interface = interface_info.shortname
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user