aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-24 04:46:48 +1000
committeronefang2019-11-24 04:46:48 +1000
commitb35fe6662ea4c85cacf2a08bd06abb679ad7e37e (patch)
tree45e705d04dc7993621c3a1b59a5bb5a86110a452
parentClean up DNS-RR report spacing. (diff)
downloadapt-panopticon-b35fe6662ea4c85cacf2a08bd06abb679ad7e37e.zip
apt-panopticon-b35fe6662ea4c85cacf2a08bd06abb679ad7e37e.tar.gz
apt-panopticon-b35fe6662ea4c85cacf2a08bd06abb679ad7e37e.tar.bz2
apt-panopticon-b35fe6662ea4c85cacf2a08bd06abb679ad7e37e.tar.xz
Mark missing DNS-RR IPs.
-rwxr-xr-xapt-panopticon-report-web.lua8
1 files changed, 7 insertions, 1 deletions
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
258 if type(w) == "table" then 258 if type(w) == "table" then
259 for i, u in pairs(w) do 259 for i, u in pairs(w) do
260 if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][i] then 260 if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][i] then
261 local log = logCount("deb.devuan.org", l) 261 local log = logCount("deb.devuan.org", i)
262 if "" ~= log then 262 if "" ~= log then
263 if "" == dns then dns = " " else dns = dns .. "   " end 263 if "" == dns then dns = " " else dns = dns .. "   " end
264 dns = dns .. logCount("deb.devuan.org", i) 264 dns = dns .. logCount("deb.devuan.org", i)
265 else
266 if "" == dns then dns = " " else dns = dns .. "   " end
267 dns = dns .. "<font color='red'><b>" .. i .. "</b></font>"
265 end 268 end
266 end 269 end
267 end 270 end
@@ -271,6 +274,9 @@ if nil == file then C("opening mirrors file - " .. e) else
271 if "" ~= log then 274 if "" ~= log then
272 if "" == dns then dns = " " else dns = dns .. " &nbsp; " end 275 if "" == dns then dns = " " else dns = dns .. " &nbsp; " end
273 dns = dns .. log 276 dns = dns .. log
277 else
278 if "" == dns then dns = " " else dns = dns .. " &nbsp; " end
279 dns = dns .. "<font color='red'><b>" .. l .. "</b></font>"
274 end 280 end
275 end 281 end
276 end 282 end