From c36676cc779f0b293eb5c90161a4802c2f9c4855 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 26 Nov 2019 00:48:47 +1000 Subject: Remove obsolete code. --- apt-panopticon.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 39235c2..caa72ca 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -551,15 +551,11 @@ local checkFiles = function (host, ip, path, file) I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file) if checkTimeouts(host, "http", ip .. path .. "/" .. file) then return end if checkTimeouts(host, "https", ip .. path .. "/" .. file) then return end --- if testing("http", host) then checkHEAD(host, "http://" .. ip .. path .. "/" .. file); if checkTimeouts(host, "http" ) then return end; end --- if testing("https", host) then checkHEAD(host, "https://" .. ip .. path .. "/" .. file); if checkTimeouts(host, "https") then return end; end else I(" Checking IP " .. host .. " -> " .. ip .. " " .. path) for i, s in pairs(referenceDevs) do if checkTimeouts(host, "http", ip .. path .. "/" .. s) then return end if checkTimeouts(host, "https", ip .. path .. "/" .. s) then return end --- if testing("http", host) then checkHEAD(host, "http://" .. ip .. path .. "/" .. s); if checkTimeouts(host, "http" ) then return end; end --- if testing("https", host) then checkHEAD(host, "https://" .. ip .. path .. "/" .. s); if checkTimeouts(host, "https") then return end; end end for i, s in pairs(releases) do -- cgit v1.1