aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12024-08-08 17:13:13 +1000
committerdvs12024-08-08 17:13:13 +1000
commit0b08538f13b8aba68ce3c5092dfdd83a606cd887 (patch)
treee71c79ae140a96c3319364edcc9a865edae670a7
parentSwitch base-files test to a specific arch, coz _all went away. (diff)
downloadapt-panopticon-0b08538f13b8aba68ce3c5092dfdd83a606cd887.zip
apt-panopticon-0b08538f13b8aba68ce3c5092dfdd83a606cd887.tar.gz
apt-panopticon-0b08538f13b8aba68ce3c5092dfdd83a606cd887.tar.bz2
apt-panopticon-0b08538f13b8aba68ce3c5092dfdd83a606cd887.tar.xz
Don't poke at HTTPS for URLsanity if the server doesn't actually support HTTPS.
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 403cfa0..40baa58 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -308,6 +308,10 @@ checkHEAD = function (host, URL, r, retry, sanity)
308 if "https" == PU.scheme and APT.options.roundRobin.value == host then 308 if "https" == PU.scheme and APT.options.roundRobin.value == host then
309 I(spcd .. "Not testing " .. APT.lnk(URL) .. " mirrors wont have the correct HTTPS certificate for the round robin.", host) 309 I(spcd .. "Not testing " .. APT.lnk(URL) .. " mirrors wont have the correct HTTPS certificate for the round robin.", host)
310 return 310 return
311-- TODO - For some odd reason, sometimes one of these is nil. Dig deeper to figure out why.
312 elseif "https" == PU.scheme and (APT.mirrors[host] ~= nil) and (APT.mirrors[host].Protocols ~= nil) and (not APT.mirrors[host].Protocols.https) then
313 I(spcd .. "Not testing " .. APT.lnk(URL) .. " host doesn't support HTTPS.", host)
314 return
311 else 315 else
312 I(spcd .. check .. " " .. APT.lnk(URL), host) 316 I(spcd .. check .. " " .. APT.lnk(URL), host)
313 end 317 end