mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Read large chunks instead of lines.
This commit is contained in:
parent
02369ec7d9
commit
e8caacae85
1 changed files with 2 additions and 1 deletions
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue