From addb2ff4ef8a0ada410722ea43e6335f3e4f905d Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 29 Sep 2019 12:27:52 +1000 Subject: checkPaths -> checkFiles --- mirror-checker.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mirror-checker.lua') diff --git a/mirror-checker.lua b/mirror-checker.lua index 23c7e33..f443789 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua @@ -275,7 +275,7 @@ checkHEAD = function (host, URL, r, retry) end end -local checkPaths = function (host, ip, path, file) +local checkFiles = function (host, ip, path, file) if nil ~= file then if "redirect" == ip then ip = host end I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file) @@ -313,13 +313,13 @@ checkRedirects = function (orig, host, path, ip, file) local po = url.parse("http://" .. orig) if "" ~= file then D("checking redirected file " .. po.host .. " " .. file) - checkPaths(po.host, ip, path, file) + checkFiles(po.host, ip, path, file) else - checkPaths(po.host, ip, path) + checkFiles(po.host, ip, path) end else if orig == host then D("checkRedirects " .. orig .. "" .. file) else D("checkRedirects " .. orig .. " -> " .. host) end --- TODO - use checkPaths() here ^^^ on the original domain name, coz that's not getting caught yet. I think. +-- TODO - use checkFiles() here ^^^ on the original domain name, coz that's not getting caught yet. I think. gatherIPs(ph.host) for k, v in pairs(IP[ph.host]) do D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) -- cgit v1.1