diff options
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-report-web.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index ca7ce4b..163d50f 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua | |||
@@ -109,7 +109,7 @@ local status = function(host, results, typ) | |||
109 | end | 109 | end |
110 | end | 110 | end |
111 | 111 | ||
112 | if 0 < e then result = e .. " <font color='red'><b>error</b></font>" end | 112 | if 0 < e then result = e .. " <font color='red'><b>errors</b></font>" end |
113 | if 1 == e then result = e .. " <font color='red'><b>error</b></font>" end | 113 | if 1 == e then result = e .. " <font color='red'><b>error</b></font>" end |
114 | if 0 < w then | 114 | if 0 < w then |
115 | if 0 < e then result = result .. ", " end | 115 | if 0 < e then result = result .. ", " end |
@@ -163,7 +163,6 @@ local collate = function(host, ip, results) | |||
163 | return results | 163 | return results |
164 | end | 164 | end |
165 | 165 | ||
166 | |||
167 | local mirrors = loadfile("results/mirrors.lua")() | 166 | local mirrors = loadfile("results/mirrors.lua")() |
168 | 167 | ||
169 | local file, e = io.open("results/Report-web.html", "w+") | 168 | local file, e = io.open("results/Report-web.html", "w+") |
@@ -184,14 +183,14 @@ if nil == file then C("opening mirrors file - " .. e) else | |||
184 | results = collate(k, i, results) | 183 | results = collate(k, i, results) |
185 | end | 184 | end |
186 | end | 185 | end |
187 | -- local http = status(k, results, "http") | 186 | local http = status(k, results, "http") |
188 | -- local https = status(k, results, "https") | 187 | local https = status(k, results, "https") |
189 | local dns = "[<font color='yellow'><b>skip</b></font>]" | 188 | local dns = "[<font color='yellow'><b>skip</b></font>]" |
189 | local protocol = status(k, results, "Protocol") | ||
190 | local sanity = "[<font color='yellow'><b>skip</b></font>]" | ||
190 | local integrity = "[<font color='yellow'><b>skip</b></font>]" | 191 | local integrity = "[<font color='yellow'><b>skip</b></font>]" |
191 | local protocol = status(k, results, "Protocol") | ||
192 | local sanity = "[<font color='yellow'><b>skip</b></font>]" | ||
193 | local updated = "[<font color='yellow'><b>skip</b></font>]" | 192 | local updated = "[<font color='yellow'><b>skip</b></font>]" |
194 | file:write(" DNS-RR: " .. dns .. " Integrity: " .. integrity .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Updated: " .. updated .. "\n<br>\n") | 193 | file:write(" http: " .. http .. " https: " .. https .. " DNS-RR: " .. dns .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Integrity: " .. integrity .. " Updated: " .. updated .. "\n<br>\n") |
195 | end | 194 | end |
196 | file:write( "==== faulty mirrors: ====<br>\n<br>\n" .. faulty) | 195 | file:write( "==== faulty mirrors: ====<br>\n<br>\n" .. faulty) |
197 | file:write( "\n<br>\nLast Failure: NOT WRITTEN YET<br>\n<br>") | 196 | file:write( "\n<br>\nLast Failure: NOT WRITTEN YET<br>\n<br>") |