aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-09-30 21:49:06 +1000
committeronefang2019-09-30 21:49:06 +1000
commite78558fbc69e07dce74dcbaa9b8c86acd84b72ab (patch)
treedb65f7364edf0abd4214cf4e1c99ba3748c5a41d
parentRemove excess space at end of mirror base URLs from mirror_list.txt. (diff)
downloadapt-panopticon-e78558fbc69e07dce74dcbaa9b8c86acd84b72ab.zip
apt-panopticon-e78558fbc69e07dce74dcbaa9b8c86acd84b72ab.tar.gz
apt-panopticon-e78558fbc69e07dce74dcbaa9b8c86acd84b72ab.tar.bz2
apt-panopticon-e78558fbc69e07dce74dcbaa9b8c86acd84b72ab.tar.xz
Check the original domain name as well as everything else.
-rwxr-xr-xmirror-checker.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index c704bf5..e3c6120 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -318,8 +318,10 @@ checkHost = function (orig, host, path, ip, file)
318 checkFiles(po.host, ip, path) 318 checkFiles(po.host, ip, path)
319 end 319 end
320 else 320 else
321 if orig == host then D("checkHost " .. orig .. "" .. file) else D("checkHost " .. orig .. " -> " .. host) end 321 if orig == host then
322-- TODO - use checkFiles() here ^^^ on the original domain name, coz that's not getting caught yet. I think. 322 D("checkHost " .. orig .. "" .. file)
323 checkFiles(orig, orig, path);
324 else D("checkHost " .. orig .. " -> " .. host) end
323 gatherIPs(ph.host) 325 gatherIPs(ph.host)
324 for k, v in pairs(IP[ph.host]) do 326 for k, v in pairs(IP[ph.host]) do
325 D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) 327 D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k)