mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
fixed a bug in whitelisting code
This commit is contained in:
@@ -275,6 +275,7 @@ LinkExtractor = {
|
||||
|
||||
-- check the url against our whitelist
|
||||
if ( #self.options.whitelist > 0 ) then
|
||||
valid = false
|
||||
for _, func in ipairs(self.options.whitelist) do
|
||||
if ( func(url) ) then
|
||||
stdnse.print_debug(2, "%s: Whitelist match: %s", LIBRARY_NAME, tostring(url))
|
||||
|
||||
Reference in New Issue
Block a user