aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua30
1 files changed, 16 insertions, 14 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 06a051e..a524260 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -199,24 +199,26 @@ gatherIPs = function (host)
199 gatherIPs(m.FQDN) 199 gatherIPs(m.FQDN)
200 IP[host][m.FQDN] = IP[m.FQDN] 200 IP[host][m.FQDN] = IP[m.FQDN]
201 -- Strip them out so we don't test them twice. 201 -- Strip them out so we don't test them twice.
202 for l, n in pairs(IP[m.FQDN]) do 202 if nil ~= IP[m.FQDN] then
203 if type(n) == 'table' then 203 for l, n in pairs(IP[m.FQDN]) do
204 for h, p in pairs(n) do 204 if type(n) == 'table' then
205 for h, p in pairs(n) do
206 for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
207 if h == j then IP[host][m.FQDN][l][h] = nil end
208 end
209 o = 0
210 for j in pairs(IP[host][m.FQDN][l]) do o = o + 1 end
211 if 0 == o then IP[host][m.FQDN][l] = nil end
212 end
213 else
205 for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do 214 for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
206 if h == j then IP[host][m.FQDN][l][h] = nil end 215 if l == j then IP[host][m.FQDN][l] = nil end
207 end 216 end
208 o = 0
209 for j in pairs(IP[host][m.FQDN][l]) do o = o + 1 end
210 if 0 == o then IP[host][m.FQDN][l] = nil end
211 end
212 else
213 for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do
214 if l == j then IP[host][m.FQDN][l] = nil end
215 end 217 end
218 o = 0
219 for j in pairs(IP[host][m.FQDN]) do o = o + 1 end
220 if 0 == o then IP[host][m.FQDN] = nil end
216 end 221 end
217 o = 0
218 for j in pairs(IP[host][m.FQDN]) do o = o + 1 end
219 if 0 == o then IP[host][m.FQDN] = nil end
220 end 222 end
221 end 223 end
222 end 224 end