1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-12 09:29:02 +00:00

Read large chunks instead of lines.

This commit is contained in:
batrick
2012-12-16 00:24:37 +00:00
parent 02369ec7d9
commit e8caacae85

View File

@@ -224,7 +224,8 @@ local function loadscript (filename)
local function ld ()
-- header for scripts to allow setting the environment
yield [[return function (_ENV) return function (...)]];
for line in lines(filename, "*L") do
-- actual script
for line in lines(filename, 2^15) do
yield(line);
end
-- footer...