1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

Use parse_timespec for ipv6-ra-flood.timeout argument.

This commit is contained in:
david
2012-09-23 21:15:24 +00:00
parent 40a2af0a84
commit 6b86535138

View File

@@ -132,7 +132,7 @@ local function broadcast_on_interface(iface)
-- packet counter
local counter = 0
local arg_timeout = tonumber(stdnse.get_script_args(SCRIPT_NAME..".timeout")) or 30
local arg_timeout = stdnse.parse_timespec(stdnse.get_script_args(SCRIPT_NAME..".timeout") or "30s")
local dnet = nmap.new_dnet()