From b35fe6662ea4c85cacf2a08bd06abb679ad7e37e Mon Sep 17 00:00:00 2001
From: onefang
Date: Sun, 24 Nov 2019 04:46:48 +1000
Subject: Mark missing DNS-RR IPs.
---
apt-panopticon-report-web.lua | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index 78e631f..5fd26fa 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -258,10 +258,13 @@ if nil == file then C("opening mirrors file - " .. e) else
if type(w) == "table" then
for i, u in pairs(w) do
if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][i] then
- local log = logCount("deb.devuan.org", l)
+ local log = logCount("deb.devuan.org", i)
if "" ~= log then
if "" == dns then dns = " " else dns = dns .. " " end
dns = dns .. logCount("deb.devuan.org", i)
+ else
+ if "" == dns then dns = " " else dns = dns .. " " end
+ dns = dns .. "" .. i .. ""
end
end
end
@@ -271,6 +274,9 @@ if nil == file then C("opening mirrors file - " .. e) else
if "" ~= log then
if "" == dns then dns = " " else dns = dns .. " " end
dns = dns .. log
+ else
+ if "" == dns then dns = " " else dns = dns .. " " end
+ dns = dns .. "" .. l .. ""
end
end
end
--
cgit v1.1