diff options
-rwxr-xr-x | apt-panopticon-report-web.lua | 24 |
1 files 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 | |||
246 | end | 246 | end |
247 | local http = status(k, results, "http") | 247 | local http = status(k, results, "http") |
248 | local https = status(k, results, "https") | 248 | local https = status(k, results, "https") |
249 | local dns = "[<font color='gray'><b>skip</b></font>]" | 249 | local dns = "" |
250 | local protocol = status(k, results, "Protocol") | 250 | local protocol = status(k, results, "Protocol") |
251 | local sanity = "[<font color='gray'><b>skip</b></font>]" | 251 | local sanity = "[<font color='gray'><b>skip</b></font>]" |
252 | local integrity = "[<font color='gray'><b>skip</b></font>]" | 252 | local integrity = "[<font color='gray'><b>skip</b></font>]" |
253 | local updated = "[<font color='gray'><b>skip</b></font>]" | 253 | local updated = "[<font color='gray'><b>skip</b></font>]" |
254 | file:write("<td>http: " .. http .. " </td><td>https: " .. https .. " </td><td>DNS-RR: " .. | 254 | |
255 | dns .. " </td><td>Protocol: " .. protocol .. " </td><td>URL-sanity: " .. sanity .. | 255 | if "deb.devuan.org" ~= k then |
256 | for l, w in pairs(mirrors[k].IPs) do | ||
257 | if type(w) == "table" then | ||
258 | for i, u in pairs(w) do | ||
259 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][i] then | ||
260 | dns = dns .. " " .. logCount("deb.devuan.org", i) | ||
261 | end | ||
262 | end | ||
263 | else | ||
264 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][l] then | ||
265 | dns = dns .. " " .. logCount("deb.devuan.org", l) | ||
266 | end | ||
267 | end | ||
268 | end | ||
269 | if "" == dns then dns = "DNS-RR: [<font color='gray'><b>no</b></font>]" else dns = "DNS-RR: " .. dns end | ||
270 | end | ||
271 | |||
272 | file:write("<td>http: " .. http .. " </td><td>https: " .. https .. " </td><td>" .. dns .. | ||
273 | " </td><td>Protocol: " .. protocol .. " </td><td>URL-sanity: " .. sanity .. | ||
256 | " </td><td>Integrity: " .. integrity .. " </td><td>Updated: " .. updated .. "</td></tr>\n") | 274 | " </td><td>Integrity: " .. integrity .. " </td><td>Updated: " .. updated .. "</td></tr>\n") |
257 | end | 275 | end |
258 | file:write( "</table>\n<br>\n<h2>==== faulty mirrors: ====</h2>\n" .. faulty) | 276 | file:write( "</table>\n<br>\n<h2>==== faulty mirrors: ====</h2>\n" .. faulty) |