diff options
| author | onefang | 2019-11-13 22:51:45 +1000 | 
|---|---|---|
| committer | onefang | 2019-11-13 22:51:45 +1000 | 
| commit | 0261eb8a347ba0f8ff6ad7d1697e8111f63506a1 (patch) | |
| tree | b8b9560b53c2a8d296e4d6641fa2873ec3cd371b | |
| parent | Protect command listing in log files. (diff) | |
| download | apt-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 '')
| -rwxr-xr-x | apt-panopticon-report-web.lua | 9 | 
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. " .. | 
