aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-24 04:29:01 +1000
committeronefang2019-11-24 04:29:01 +1000
commit36e374188e739b00d9089820cee26c04266d8d5b (patch)
tree09e4063dcba6434296ee2ca6bcefccf9f3d8df1a
parentAdd DNS-RR report. (diff)
downloadapt-panopticon-36e374188e739b00d9089820cee26c04266d8d5b.zip
apt-panopticon-36e374188e739b00d9089820cee26c04266d8d5b.tar.gz
apt-panopticon-36e374188e739b00d9089820cee26c04266d8d5b.tar.bz2
apt-panopticon-36e374188e739b00d9089820cee26c04266d8d5b.tar.xz
Clean up DNS-RR report spacing.
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon-report-web.lua15
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 .. " &nbsp; " 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 .. " &nbsp; " 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 .. "&nbsp;</td><td>https: " .. https .. "&nbsp;</td><td>" .. dns .. 281 file:write("<td>http: " .. http .. "&nbsp;</td><td>https: " .. https .. "&nbsp;</td><td>" .. dns ..