1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Removed declarations of unused variables.

This commit is contained in:
henri
2012-01-19 22:03:06 +00:00
parent 1670f59210
commit 399d2416b5

View File

@@ -104,7 +104,6 @@ function default_test(host, port)
local get_status, head_status, conn_status
local get_r1, get_r2, get_r3
local get_cstatus, head_cstatus
local _
-- Start test n1 -> google.com
-- making requests
@@ -189,14 +188,10 @@ end
portrule = shortport.port_or_service({8123,3128,8000,8080},{'polipo','squid-http','http-proxy'})
action = function(host, port)
local response
local i
local retval
local supported_methods = "\nMethods succesfully tested: "
local fstatus = false
local def_test = true
local test_url, pattern
local hostname
test_url, pattern = proxy.return_args()
@@ -210,8 +205,7 @@ action = function(host, port)
-- If any of the tests were OK, then the proxy is potentially open
if fstatus then
retval = "Potentially OPEN proxy.\n" .. supported_methods
return retval
return "Potentially OPEN proxy.\n" .. supported_methods
elseif not fstatus and supported_methods then
return supported_methods
end