From 018259f210c2e8addd76dd24969803a3529a553d Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 13 Dec 2019 03:16:12 +1000 Subject: Refactor the protocols table. --- apt-panopticon-report-email-web.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-panopticon-report-email-web.lua') diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 382b14d..94f0417 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua @@ -49,7 +49,8 @@ local status = function(host, results, typ) local w = 0 local s = nil ~= APT.mirrors[host].Protocols[typ] local to = results.timeout - if ('http' ~= typ) and ('https' ~= typ) and ('ftp' ~= typ) and ('rsync' ~= typ) then s = true end +-- if ('http' ~= typ) and ('https' ~= typ) and ('ftp' ~= typ) and ('rsync' ~= typ) then s = true end + if not APT.search(APT.protocols, typ) then s = true end if nil ~= results[typ] then e = results[typ].errors w = results[typ].warnings -- cgit v1.1