1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Local variable.

This commit is contained in:
david
2012-07-26 06:00:45 +00:00
parent ea5e4e07ae
commit 8f907ae853

View File

@@ -225,6 +225,8 @@ function action(host, port)
-- versions of Git when there are more than one repo format version, we will
-- display that too.
if ok(".git/config") then
local config = replies[".git/config"].body
-- These are some popular / well-known Git hosting services and/or hosting services
-- that allow deployment via 'git push'
local popular_remotes = {
@@ -235,7 +237,7 @@ function action(host, port)
}
-- Go through all of the popular remotes and look for it in the config file
for _, remote in ipairs(popular_remotes) do
lookforremote(replies[".git/config"].body, remote[1], remote[2], remote[3])
lookforremote(config, remote[1], remote[2], remote[3])
end
end