diff options
| author | onefang | 2019-09-30 21:49:06 +1000 |
|---|---|---|
| committer | onefang | 2019-09-30 21:49:06 +1000 |
| commit | e78558fbc69e07dce74dcbaa9b8c86acd84b72ab (patch) | |
| tree | db65f7364edf0abd4214cf4e1c99ba3748c5a41d | |
| parent | Remove excess space at end of mirror base URLs from mirror_list.txt. (diff) | |
| download | apt-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-x | mirror-checker.lua | 6 |
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) |
