mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +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()
|
catch = function()
|
||||||
socket:close()
|
socket:close()
|
||||||
end
|
end
|
||||||
try = nmap.newtry(catch)
|
try = nmap.new_try(catch)
|
||||||
|
|
||||||
try(socket:connect(host.ip, port.number))
|
try(socket:connect(host.ip, port.number))
|
||||||
result = try(socket:receive_lines(1));
|
result = try(socket:receive_lines(1));
|
||||||
@@ -3364,7 +3364,7 @@ local catch = function()
|
|||||||
client_service:close()
|
client_service:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
local try = nmap.newtry(catch)
|
local try = nmap.new_try(catch)
|
||||||
|
|
||||||
try(client_ident:connect(host.ip, 113))
|
try(client_ident:connect(host.ip, 113))
|
||||||
try(client_service:connect(host.ip, port.number))
|
try(client_service:connect(host.ip, port.number))
|
||||||
|
|||||||
Reference in New Issue
Block a user