diff options
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-report-web.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index fa6df4d..78e631f 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua | |||
@@ -252,21 +252,30 @@ if nil == file then C("opening mirrors file - " .. e) else | |||
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 | 254 | ||
255 | -- DNS-RR test. | ||
255 | if "deb.devuan.org" ~= k then | 256 | if "deb.devuan.org" ~= k then |
256 | for l, w in pairs(mirrors[k].IPs) do | 257 | for l, w in pairs(mirrors[k].IPs) do |
257 | if type(w) == "table" then | 258 | if type(w) == "table" then |
258 | for i, u in pairs(w) do | 259 | for i, u in pairs(w) do |
259 | 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 |
260 | dns = dns .. " " .. logCount("deb.devuan.org", i) | 261 | local log = logCount("deb.devuan.org", l) |
262 | if "" ~= log then | ||
263 | if "" == dns then dns = " " else dns = dns .. " " end | ||
264 | dns = dns .. logCount("deb.devuan.org", i) | ||
265 | end | ||
261 | end | 266 | end |
262 | end | 267 | end |
263 | else | 268 | else |
264 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][l] then | 269 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][l] then |
265 | dns = dns .. " " .. logCount("deb.devuan.org", l) | 270 | local log = logCount("deb.devuan.org", l) |
271 | if "" ~= log then | ||
272 | if "" == dns then dns = " " else dns = dns .. " " end | ||
273 | dns = dns .. log | ||
274 | end | ||
266 | end | 275 | end |
267 | end | 276 | end |
268 | end | 277 | end |
269 | if "" == dns then dns = "DNS-RR: [<font color='gray'><b>no</b></font>]" else dns = "DNS-RR: " .. dns end | 278 | if "" == dns then dns = "DNS-RR: [<font color='gray'><b>no</b></font>]" else dns = "DNS-RR:" .. dns end |
270 | end | 279 | end |
271 | 280 | ||
272 | file:write("<td>http: " .. http .. " </td><td>https: " .. https .. " </td><td>" .. dns .. | 281 | file:write("<td>http: " .. http .. " </td><td>https: " .. https .. " </td><td>" .. dns .. |