mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
Replace instances of bin.pack('A', x), which is equivalent to tostring(x), and a no-op on strings
This commit is contained in:
@@ -136,7 +136,7 @@ Request = {
|
||||
local header = bin.pack("<IAI", magic, cmd, len)
|
||||
|
||||
-- After 2012-02-20, version messages require checksums
|
||||
header = header .. bin.pack("A", checksum:sub(1,4))
|
||||
header = header .. checksum:sub(1,4)
|
||||
|
||||
return header .. payload
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user