From e78558fbc69e07dce74dcbaa9b8c86acd84b72ab Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 30 Sep 2019 21:49:06 +1000 Subject: Check the original domain name as well as everything else. --- mirror-checker.lua | 6 ++++-- 1 file 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) checkFiles(po.host, ip, path) end else - if orig == host then D("checkHost " .. orig .. "" .. file) else D("checkHost " .. orig .. " -> " .. host) end --- TODO - use checkFiles() here ^^^ on the original domain name, coz that's not getting caught yet. I think. + if orig == host then + D("checkHost " .. orig .. "" .. file) + checkFiles(orig, orig, path); + else D("checkHost " .. orig .. " -> " .. host) end gatherIPs(ph.host) for k, v in pairs(IP[ph.host]) do D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) -- cgit v1.1