aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmirror-checker.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index cb28d12..acd06f4 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -297,14 +297,9 @@ checkRedirects = function (orig, host, path, ip, file)
297 elseif v == "AAAA" then 297 elseif v == "AAAA" then
298 if testing("IPv6") then execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k .. "] " .. file .. " &") end 298 if testing("IPv6") then execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k .. "] " .. file .. " &") end
299 elseif v == "CNAME" then 299 elseif v == "CNAME" then
300 if "" == file then 300 checkRedirects(orig, k, path, ip, file) -- Check the original, with the DNS records from the CNAME. Do not check the CNAME, it's just asource of IPs.
301-- TODO - maybe "ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. orig .. path .. " " .. k .. " &" 301 elseif v == "SRV" then
302-- ./mirror-checker.lua --tests=-IPv6 -q deb.roundr.devuan.org & -> executing ionice -c3 ./mirror-checker.lua --tests=-IPv6 -q deb.devuan.org deb.roundr.devuan.org & 302 print("SVR record found, now what do we do?")
303 execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. k .. path .. " &")
304 else
305 execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. k .. path .. " redirect " .. file .. " &")
306 end
307 checkRedirects(orig, k, path, ip, file) -- Check the original, with the DNS records from the CNAME, as well as the CNAME, so they both get checked.
308 end 303 end
309 end 304 end
310 end 305 end