aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-09-06 15:55:59 +1000
committeronefang2019-09-06 15:55:59 +1000
commit92d9585ea016f4e03bb08b484c4a10498eedc9d2 (patch)
tree22e078dd4a1959c1a0a0a5b8dbbab5c8244fda34
parentDon't check CNAMES, just use them to get more IPs. (diff)
downloadapt-panopticon-92d9585ea016f4e03bb08b484c4a10498eedc9d2.zip
apt-panopticon-92d9585ea016f4e03bb08b484c4a10498eedc9d2.tar.gz
apt-panopticon-92d9585ea016f4e03bb08b484c4a10498eedc9d2.tar.bz2
apt-panopticon-92d9585ea016f4e03bb08b484c4a10498eedc9d2.tar.xz
TODO++
-rwxr-xr-xmirror-checker.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index acd06f4..069a038 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -198,6 +198,7 @@ checkURL = function (host, URL, r, retry)
198 198
199 end 199 end
200 if 0 < retry then 200 if 0 < retry then
201-- TODO - should have a random sleep here before retrying.
201 check = "Retry " .. retry .. " " .. check 202 check = "Retry " .. retry .. " " .. check
202 end 203 end
203 if 10 < r then 204 if 10 < r then
@@ -289,6 +290,7 @@ checkRedirects = function (orig, host, path, ip, file)
289 end 290 end
290 else 291 else
291 if orig == host then D("checkRedirects " .. orig .. "" .. file) else D("checkRedirects " .. orig .. " -> " .. host) end 292 if orig == host then D("checkRedirects " .. orig .. "" .. file) else D("checkRedirects " .. orig .. " -> " .. host) end
293-- TODO - use checkPaths() here ^^^ on the original domain name, coz that's not getting caught yet. I think.
292 gatherIPs(ph.host) 294 gatherIPs(ph.host)
293 for k, v in pairs(IP[ph.host]) do 295 for k, v in pairs(IP[ph.host]) do
294 D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) 296 D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k)