mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Allow # comments in wp-plugins.lst.
This commit is contained in:
parent
01f3eba282
commit
a7a4c74120
1 changed files with 3 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ portrule = shortport.service("http")
|
|||
local function read_data_file(file)
|
||||
return coroutine.wrap(function()
|
||||
for line in file:lines(file) do
|
||||
coroutine.yield(line)
|
||||
if not line:match("^%s*#") and not line:match("^%s*$") then
|
||||
coroutine.yield(line)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue