mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
fixed a bug where any url would be treated as withinhost due to a lacking
return statement in the removewww function
This commit is contained in:
parent
21ba9f7b4a
commit
e7cb28619e
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ Options = {
|
|||
o.timeout = options.timeout or 10000
|
||||
o.whitelist = o.whitelist or {}
|
||||
o.blacklist = o.blacklist or {}
|
||||
local removewww = function(url) string.gsub(url, "^www%.", "") end
|
||||
local removewww = function(url) return string.gsub(url, "^www%.", "") end
|
||||
|
||||
if ( o.withinhost == true or o.withindomain == true ) then
|
||||
-- set up the appropriate matching functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue