mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Local variable.
This commit is contained in:
parent
ea5e4e07ae
commit
8f907ae853
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue