From cc182c9f8a6eef6be66f99de4fbfe098a6c83936 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 2 Jan 2020 18:43:36 +1000 Subject: Collate more data from the redirect results. A few too many bandaids, gonna have to rewrite some stuff soonish. --- apt-panopticon.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 52e11eb..6558474 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -1127,7 +1127,8 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. local srvs = io.popen('ls -1 results/*.lua') for l in srvs:lines() do local hst = l:sub(9, -5) - if (l:find('_') == nil) and (nil == APT.mirrors[hst]) then + if nil ~= l:find('_R%.lua') then hst = hst:sub(1, -3) end + if (hst:find('_') == nil) and (nil == APT.mirrors[hst]) then local ips = loadfile(l)().IPs if nil ~= ips then debians[hst] = {Country = '', FDQN = hst, Active = 'yes', Rate = '', BaseURL = hst, Protocols = {http = true, https = true}, Bandwidth = '', IPs = ips} -- cgit v1.1