mirror of
https://github.com/nmap/nmap.git
synced 2026-10-09 05:44:36 +00:00
Simplify packing/unpacking command names for bitcoin (no counting nulls)
This commit is contained in:
parent
9bda8cec86
commit
4ef8fcc363
2 changed files with 41 additions and 21 deletions
|
|
@ -51,12 +51,12 @@ action = function(host, port)
|
|||
|
||||
local status, ver = bcoin:exchVersion()
|
||||
if ( not(status) ) then
|
||||
return fail("Failed to extract version information")
|
||||
return fail("Failed to extract version information: " .. ver)
|
||||
end
|
||||
|
||||
local status, nodes = bcoin:getNodes()
|
||||
if ( not(status) ) then
|
||||
return fail("Failed to extract address information")
|
||||
return fail("Failed to extract address information" .. nodes)
|
||||
end
|
||||
bcoin:close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue