From fe8fc1dee06b74217d5a025707720553dd2a2368 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 17 Dec 2021 14:58:46 +1000 Subject: Don't hard code deb.roundr.devuan.org all over the place, and check the results. Coz it got changed to deb.rr.devuan.org. --- apt-panopticon.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index a524260..1a00fc7 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -199,11 +199,11 @@ gatherIPs = function (host) gatherIPs(m.FQDN) IP[host][m.FQDN] = IP[m.FQDN] -- Strip them out so we don't test them twice. - if nil ~= IP[m.FQDN] then + if (nil ~= IP[m.FQDN]) and (nil ~= IP[host][APT.options.roundRobinCname]) then for l, n in pairs(IP[m.FQDN]) do if type(n) == 'table' then for h, p in pairs(n) do - for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do + for j, o in pairs(IP[host][APT.options.roundRobinCname]) do if h == j then IP[host][m.FQDN][l][h] = nil end end o = 0 @@ -211,7 +211,7 @@ gatherIPs = function (host) if 0 == o then IP[host][m.FQDN][l] = nil end end else - for j, o in pairs(IP[host]['deb.roundr.devuan.org']) do + for j, o in pairs(IP[host][APT.options.roundRobinCname]) do if l == j then IP[host][m.FQDN][l] = nil end end end @@ -1009,6 +1009,7 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to devuan.bio.lmu.de (141.84.43.19) port 80 (#0) curl: (22) The requested URL returned error: 404 Not Found ]] + local trace = {} local min, max, spd = 999999999999, 0 local num = '[%d%.]+[kM]?' if APT.checkFile(f) then -- cgit v1.1