From 0261eb8a347ba0f8ff6ad7d1697e8111f63506a1 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 13 Nov 2019 22:51:45 +1000 Subject: Also make links for top level logs. --- apt-panopticon-report-web.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 file:write( "
\n
\n

==== DNS and logs: ====

\n") for k, v in pairs(mirrors) do + local log = k local n = {} + local nm = "LOG_" .. k .. ".html" + local rfile, e = io.open("results/" .. nm, "r") + if nil ~= rfile then + rfile:close() + log = "" .. k .. "" + end mirrors[k].Protocols = nil mirrors[k].FQDN = nil mirrors[k].Active = nil @@ -259,7 +266,7 @@ if nil == file then C("opening mirrors file - " .. e) else end end end - m[k .. " DNS entries -"] = n + m[log .. " DNS entries -"] = n end file:write( "

This lists each mirror, and the DNS entries for that mirror. " .. "The links point to the log files for each FDQN / IP combination that was checked. " .. -- cgit v1.1