aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-26 00:48:47 +1000
committeronefang2019-11-26 00:48:47 +1000
commitc36676cc779f0b293eb5c90161a4802c2f9c4855 (patch)
tree41a7e2e20a816bcb72d7ccce94627231d73de348
parentMake fork() more like execute(). (diff)
downloadapt-panopticon-c36676cc779f0b293eb5c90161a4802c2f9c4855.zip
apt-panopticon-c36676cc779f0b293eb5c90161a4802c2f9c4855.tar.gz
apt-panopticon-c36676cc779f0b293eb5c90161a4802c2f9c4855.tar.bz2
apt-panopticon-c36676cc779f0b293eb5c90161a4802c2f9c4855.tar.xz
Remove obsolete code.
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 0 insertions, 4 deletions
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)
551 I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file) 551 I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file)
552 if checkTimeouts(host, "http", ip .. path .. "/" .. file) then return end 552 if checkTimeouts(host, "http", ip .. path .. "/" .. file) then return end
553 if checkTimeouts(host, "https", ip .. path .. "/" .. file) then return end 553 if checkTimeouts(host, "https", ip .. path .. "/" .. file) then return end
554-- if testing("http", host) then checkHEAD(host, "http://" .. ip .. path .. "/" .. file); if checkTimeouts(host, "http" ) then return end; end
555-- if testing("https", host) then checkHEAD(host, "https://" .. ip .. path .. "/" .. file); if checkTimeouts(host, "https") then return end; end
556 else 554 else
557 I(" Checking IP " .. host .. " -> " .. ip .. " " .. path) 555 I(" Checking IP " .. host .. " -> " .. ip .. " " .. path)
558 for i, s in pairs(referenceDevs) do 556 for i, s in pairs(referenceDevs) do
559 if checkTimeouts(host, "http", ip .. path .. "/" .. s) then return end 557 if checkTimeouts(host, "http", ip .. path .. "/" .. s) then return end
560 if checkTimeouts(host, "https", ip .. path .. "/" .. s) then return end 558 if checkTimeouts(host, "https", ip .. path .. "/" .. s) then return end
561-- if testing("http", host) then checkHEAD(host, "http://" .. ip .. path .. "/" .. s); if checkTimeouts(host, "http" ) then return end; end
562-- if testing("https", host) then checkHEAD(host, "https://" .. ip .. path .. "/" .. s); if checkTimeouts(host, "https") then return end; end
563 end 559 end
564 560
565 for i, s in pairs(releases) do 561 for i, s in pairs(releases) do