From c83add0248173c9e16636a276b27b8be597bc19d Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 6 Sep 2019 15:55:15 +1000 Subject: Don't check CNAMES, just use them to get more IPs. --- mirror-checker.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mirror-checker.lua') 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) elseif v == "AAAA" then if testing("IPv6") then execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. orig .. path .. " [" .. k .. "] " .. file .. " &") end elseif v == "CNAME" then - if "" == file then --- TODO - maybe "ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. orig .. path .. " " .. k .. " &" --- ./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 & - execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. k .. path .. " &") - else - execute("ionice -c3 ./mirror-checker.lua " .. sendArgs .. " " .. k .. path .. " redirect " .. file .. " &") - end - 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. + 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. + elseif v == "SRV" then + print("SVR record found, now what do we do?") end end end -- cgit v1.1