1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Allow # comments in wp-plugins.lst.

This commit is contained in:
david
2012-03-08 21:21:49 +00:00
parent 01f3eba282
commit a7a4c74120

View File

@@ -50,8 +50,10 @@ portrule = shortport.service("http")
local function read_data_file(file)
return coroutine.wrap(function()
for line in file:lines(file) do
if not line:match("^%s*#") and not line:match("^%s*$") then
coroutine.yield(line)
end
end
end)
end