aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon-report-web.lua
diff options
context:
space:
mode:
authoronefang2019-11-13 22:51:45 +1000
committeronefang2019-11-13 22:51:45 +1000
commit0261eb8a347ba0f8ff6ad7d1697e8111f63506a1 (patch)
treeb8b9560b53c2a8d296e4d6641fa2873ec3cd371b /apt-panopticon-report-web.lua
parentProtect command listing in log files. (diff)
downloadapt-panopticon-0261eb8a347ba0f8ff6ad7d1697e8111f63506a1.zip
apt-panopticon-0261eb8a347ba0f8ff6ad7d1697e8111f63506a1.tar.gz
apt-panopticon-0261eb8a347ba0f8ff6ad7d1697e8111f63506a1.tar.bz2
apt-panopticon-0261eb8a347ba0f8ff6ad7d1697e8111f63506a1.tar.xz
Also make links for top level logs.
Diffstat (limited to 'apt-panopticon-report-web.lua')
-rwxr-xr-xapt-panopticon-report-web.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index 1981def..5968972 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -227,7 +227,14 @@ if nil == file then C("opening mirrors file - " .. e) else
227 file:write( "<br>\n<br>\n<h2>==== DNS and logs: ====</h2>\n") 227 file:write( "<br>\n<br>\n<h2>==== DNS and logs: ====</h2>\n")
228 228
229 for k, v in pairs(mirrors) do 229 for k, v in pairs(mirrors) do
230 local log = k
230 local n = {} 231 local n = {}
232 local nm = "LOG_" .. k .. ".html"
233 local rfile, e = io.open("results/" .. nm, "r")
234 if nil ~= rfile then
235 rfile:close()
236 log = "<a href='" .. nm .. "'>" .. k .. "</a>"
237 end
231 mirrors[k].Protocols = nil 238 mirrors[k].Protocols = nil
232 mirrors[k].FQDN = nil 239 mirrors[k].FQDN = nil
233 mirrors[k].Active = nil 240 mirrors[k].Active = nil
@@ -259,7 +266,7 @@ if nil == file then C("opening mirrors file - " .. e) else
259 end 266 end
260 end 267 end
261 end 268 end
262 m[k .. " DNS entries -"] = n 269 m[log .. " DNS entries -"] = n
263 end 270 end
264 file:write( "<p>This lists each mirror, and the DNS entries for that mirror. " .. 271 file:write( "<p>This lists each mirror, and the DNS entries for that mirror. " ..
265 "The links point to the log files for each FDQN / IP combination that was checked. " .. 272 "The links point to the log files for each FDQN / IP combination that was checked. " ..