diff options
author | onefang | 2019-09-06 15:55:15 +1000 |
---|---|---|
committer | onefang | 2019-09-06 15:55:15 +1000 |
commit | c83add0248173c9e16636a276b27b8be597bc19d (patch) | |
tree | 5cb670009a47802a4dd38e999a1140248c035256 | |
parent | Remove some excess uses of defaultURL from the calls to url.parse(). (diff) | |
download | apt-panopticon-c83add0248173c9e16636a276b27b8be597bc19d.zip apt-panopticon-c83add0248173c9e16636a276b27b8be597bc19d.tar.gz apt-panopticon-c83add0248173c9e16636a276b27b8be597bc19d.tar.bz2 apt-panopticon-c83add0248173c9e16636a276b27b8be597bc19d.tar.xz |
Don't check CNAMES, just use them to get more IPs.
-rwxr-xr-x | mirror-checker.lua | 11 |
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 |