mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 01:49:03 +00:00
Move date/time functions from stdnse to datetime. See #517
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local coroutine = require "coroutine"
|
||||
local datetime = require "datetime"
|
||||
local math = require "math"
|
||||
local nmap = require "nmap"
|
||||
local os = require "os"
|
||||
@@ -334,7 +335,7 @@ action = function(host, port)
|
||||
end
|
||||
|
||||
stop = os.date("!*t")
|
||||
dos_time = stdnse.format_difftime(stop, start)
|
||||
dos_time = datetime.format_difftime(stop, start)
|
||||
if DOSed then
|
||||
if Reason == "slowloris" then
|
||||
stdnse.debug2("Slowloris Attack stopped, building output")
|
||||
|
||||
Reference in New Issue
Block a user