From b7e597ed8f4783cfede07dfe6b4c679b83785a53 Mon Sep 17 00:00:00 2001 From: jah Date: Sun, 7 Feb 2016 14:07:57 +0000 Subject: [PATCH] Various non-functional improvements such as white space corrections, removal of redundant function arguments and cetera. --- scripts/whois-ip.nse | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/whois-ip.nse b/scripts/whois-ip.nse index dc4b77a48..d6e0b0341 100644 --- a/scripts/whois-ip.nse +++ b/scripts/whois-ip.nse @@ -131,9 +131,9 @@ action = function( host ) --@field local_assignments_file_expiry A period, between 0 and 7 days, during which cached assignments data may be used without being refreshed. --@field init_done Set when script_init has been called and prevents it being called again. --@field mutex A table of mutex functions, one for each service defined herein. Allows a thread exclusive access to a - -- service, preventing concurrent connections to it. + -- service, preventing concurrent connections to it. --@field nofollow A flag that prevents referrals to other whois records and allows the first record retrieved to be - -- returned instead. Set to true when whodb=nofollow + -- returned instead. Set to true when whodb=nofollow --@field using_cache A flag which modifies the size of ranges in a cache entry. Set to false when whodb=nocache --@field cache Storage for cached redirects, records and other data for output. nmap.registry.whois = {} @@ -150,7 +150,7 @@ action = function( host ) local mutex = nmap.mutex( "whois" ) mutex "lock" if not nmap.registry.whois.init_done then - script_init( host.ip ) + script_init() end mutex "done" @@ -1354,7 +1354,7 @@ end -- Called once per script invocation, the purpose of this function is to populate the registry with variables and data for use by all threads. -- @see get_args, get_local_assignments_data -function script_init( ) +function script_init() --- -- fields_meta is a table of patterns and captures and defines from which fields of a whois record to extract data.