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:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user