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.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 62acbf25..8b02626 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -606,7 +606,8 @@ local getMirrors = function () elseif "Protocols" == t then local prot = {} for w in d:gmatch("(%w+)") do - prot[w] = true; +-- prot[w] = true; + if APT.search(APT.protocols, w:lower()) then prot[w] = true end end m[t] = prot elseif "Active" == t and nil == d:sub(1, 3):find("yes", 1, true) then -- cgit v1.1