mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
[NSE] A negative value should disable the maxpage limit according to NSEDoc.
This commit is contained in:
@@ -769,6 +769,7 @@ Crawler = {
|
|||||||
-- pages we have retrieved so far
|
-- pages we have retrieved so far
|
||||||
local count = self:getPageCount()
|
local count = self:getPageCount()
|
||||||
if ( self.options.maxpagecount and
|
if ( self.options.maxpagecount and
|
||||||
|
( self.options.maxpagecount > 0 ) and
|
||||||
( count > self.options.maxpagecount ) ) then
|
( count > self.options.maxpagecount ) ) then
|
||||||
table.insert(response_queue, { false, { err = false, msg = "Reached max page count" } })
|
table.insert(response_queue, { false, { err = false, msg = "Reached max page count" } })
|
||||||
condvar "signal"
|
condvar "signal"
|
||||||
|
|||||||
Reference in New Issue
Block a user