From 5f75bb7dd2b96c47a0886b684c76a6e98af6c76b Mon Sep 17 00:00:00 2001 From: fyodor Date: Wed, 23 Jul 2008 07:31:56 +0000 Subject: [PATCH] fix a wrong function name, noted by Matthew Boyle --- docs/scripting.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scripting.xml b/docs/scripting.xml index e7256a8c5..3a41d0047 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -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))