Browse Source

Don't crash if a DNS-RR mirror fails to resolve.

master
onefang 1 year ago
parent
commit
0197902953
  1. 30
      apt-panopticon.lua

30
apt-panopticon.lua

@ -199,24 +199,26 @@ gatherIPs = function (host)
gatherIPs(m.FQDN)
IP[host][m.FQDN] = IP[m.FQDN]
-- Strip them out so we don't test them twice.
for l, n in pairs(IP[m.FQDN]) do
if type(n) == 'table' then
for h, p in pairs(n) do
if nil ~= IP[m.FQDN] then
for l, n in pairs(IP[m.FQDN]) do
if type(n) == 'table' then
for h, p in pairs(n) do
for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
if h == j then IP[host][m.FQDN][l][h] = nil end
end
o = 0
for j in pairs(IP[host][m.FQDN][l]) do o = o + 1 end
if 0 == o then IP[host][m.FQDN][l] = nil end
end
else
for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
if h == j then IP[host][m.FQDN][l][h] = nil end
if l == j then IP[host][m.FQDN][l] = nil end
end
o = 0
for j in pairs(IP[host][m.FQDN][l]) do o = o + 1 end
if 0 == o then IP[host][m.FQDN][l] = nil end
end
else
for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
if l == j then IP[host][m.FQDN][l] = nil end
end
o = 0
for j in pairs(IP[host][m.FQDN]) do o = o + 1 end
if 0 == o then IP[host][m.FQDN] = nil end
end
o = 0
for j in pairs(IP[host][m.FQDN]) do o = o + 1 end
if 0 == o then IP[host][m.FQDN] = nil end
end
end
end

Loading…
Cancel
Save