aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apt-panopticon.lua')
-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