From abacffae691c53207b231b9e66d7b0af145cf283 Mon Sep 17 00:00:00 2001
From: onefang
Date: Sun, 24 Nov 2019 04:16:06 +1000
Subject: Add DNS-RR report.
---
apt-panopticon-report-web.lua | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index 8f06071..fa6df4d 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -246,13 +246,31 @@ if nil == file then C("opening mirrors file - " .. e) else
end
local http = status(k, results, "http")
local https = status(k, results, "https")
- local dns = "[skip]"
+ local dns = ""
local protocol = status(k, results, "Protocol")
local sanity = "[skip]"
local integrity = "[skip]"
local updated = "[skip]"
- file:write("
http: " .. http .. " | https: " .. https .. " | DNS-RR: " ..
- dns .. " | Protocol: " .. protocol .. " | URL-sanity: " .. sanity ..
+
+ if "deb.devuan.org" ~= k then
+ for l, w in pairs(mirrors[k].IPs) do
+ 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
+ dns = dns .. " " .. logCount("deb.devuan.org", i)
+ end
+ end
+ else
+ if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][l] then
+ dns = dns .. " " .. logCount("deb.devuan.org", l)
+ end
+ end
+ end
+ if "" == dns then dns = "DNS-RR: [no]" else dns = "DNS-RR: " .. dns end
+ end
+
+ file:write(" | http: " .. http .. " | https: " .. https .. " | " .. dns ..
+ " | Protocol: " .. protocol .. " | URL-sanity: " .. sanity ..
" | Integrity: " .. integrity .. " | Updated: " .. updated .. " | \n")
end
file:write( "\n
\n==== faulty mirrors: ====
\n" .. faulty)
--
cgit v1.1