mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Remove dead code branch
This commit is contained in:
@@ -90,15 +90,12 @@ local order = {
|
|||||||
|
|
||||||
local extras = {
|
local extras = {
|
||||||
{
|
{
|
||||||
|
-- https://redis.io/commands/config-get/
|
||||||
"Bind addresses", {"CONFIG", "GET", "bind"}, function (data)
|
"Bind addresses", {"CONFIG", "GET", "bind"}, function (data)
|
||||||
if data[1] ~= "bind" or not data[2] then
|
if data[1] ~= "bind" or not data[2] then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
local restab = stringaux.strsplit(" ", data[2])
|
local restab = stringaux.strsplit(" ", data[2])
|
||||||
if not restab or 0 == #restab then
|
|
||||||
stdnse.debug1("Failed to parse response from server")
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
for i, ip in ipairs(restab) do
|
for i, ip in ipairs(restab) do
|
||||||
if ip == '' then restab[i] = '0.0.0.0' end
|
if ip == '' then restab[i] = '0.0.0.0' end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user