mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +00:00
[NSE] Convert these values to numeric (for example, when they passed as command line args).
This commit is contained in:
@@ -974,8 +974,8 @@ Crawler = {
|
|||||||
if ( not ( type(self.options.doscraping) == "function" ) ) then
|
if ( not ( type(self.options.doscraping) == "function" ) ) then
|
||||||
self.options.doscraping = false
|
self.options.doscraping = false
|
||||||
end
|
end
|
||||||
self.options.maxdepth = self.options.maxdepth or 3
|
self.options.maxdepth = tonumber(self.options.maxdepth) or 3
|
||||||
self.options.maxpagecount = self.options.maxpagecount or 20
|
self.options.maxpagecount = tonumber(self.options.maxpagecount) or 20
|
||||||
self.url = self.url or '/'
|
self.url = self.url or '/'
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user