aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-09-06 15:55:15 +1000
committeronefang2019-09-06 15:55:15 +1000
commitc83add0248173c9e16636a276b27b8be597bc19d (patch)
tree5cb670009a47802a4dd38e999a1140248c035256
parentRemove some excess uses of defaultURL from the calls to url.parse(). (diff)
downloadapt-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.
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