diff options
Diffstat (limited to '')
-rwxr-xr-x | mirror-checker.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
275 | end | 275 | end |
276 | end | 276 | end |
277 | 277 | ||
278 | local checkPaths = function (host, ip, path, file) | 278 | local checkFiles = function (host, ip, path, file) |
279 | if nil ~= file then | 279 | if nil ~= file then |
280 | if "redirect" == ip then ip = host end | 280 | if "redirect" == ip then ip = host end |
281 | I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file) | 281 | I(" Checking IP for file " .. host .. " -> " .. ip .. " " .. path .. " " .. file) |
@@ -313,13 +313,13 @@ checkRedirects = function (orig, host, path, ip, file) | |||
313 | local po = url.parse("http://" .. orig) | 313 | local po = url.parse("http://" .. orig) |
314 | if "" ~= file then | 314 | if "" ~= file then |
315 | D("checking redirected file " .. po.host .. " " .. file) | 315 | D("checking redirected file " .. po.host .. " " .. file) |
316 | checkPaths(po.host, ip, path, file) | 316 | checkFiles(po.host, ip, path, file) |
317 | else | 317 | else |
318 | checkPaths(po.host, ip, path) | 318 | checkFiles(po.host, ip, path) |
319 | end | 319 | end |
320 | else | 320 | else |
321 | if orig == host then D("checkRedirects " .. orig .. "" .. file) else D("checkRedirects " .. orig .. " -> " .. host) end | 321 | if orig == host then D("checkRedirects " .. orig .. "" .. file) else D("checkRedirects " .. orig .. " -> " .. host) end |
322 | -- TODO - use checkPaths() here ^^^ on the original domain name, coz that's not getting caught yet. I think. | 322 | -- TODO - use checkFiles() here ^^^ on the original domain name, coz that's not getting caught yet. I think. |
323 | gatherIPs(ph.host) | 323 | gatherIPs(ph.host) |
324 | for k, v in pairs(IP[ph.host]) do | 324 | for k, v in pairs(IP[ph.host]) do |
325 | D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) | 325 | D(" DNS record " .. v .. " " .. ph.host .. " -> " .. k) |