mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
fix a wrong function name, noted by Matthew Boyle
This commit is contained in:
@@ -3112,7 +3112,7 @@ socket = nmap.new_socket()
|
||||
catch = function()
|
||||
socket:close()
|
||||
end
|
||||
try = nmap.newtry(catch)
|
||||
try = nmap.new_try(catch)
|
||||
|
||||
try(socket:connect(host.ip, port.number))
|
||||
result = try(socket:receive_lines(1));
|
||||
@@ -3364,7 +3364,7 @@ local catch = function()
|
||||
client_service:close()
|
||||
end
|
||||
|
||||
local try = nmap.newtry(catch)
|
||||
local try = nmap.new_try(catch)
|
||||
|
||||
try(client_ident:connect(host.ip, 113))
|
||||
try(client_service:connect(host.ip, port.number))
|
||||
|
||||
Reference in New Issue
Block a user