diff options
author | onefang | 2020-01-02 18:43:36 +1000 |
---|---|---|
committer | onefang | 2020-01-02 18:43:36 +1000 |
commit | cc182c9f8a6eef6be66f99de4fbfe098a6c83936 (patch) | |
tree | fda8d1b4a85ec98b083e4845c19134f4fb3c3493 /apt-panopticon.lua | |
parent | TODO++ (diff) | |
download | apt-panopticon-cc182c9f8a6eef6be66f99de4fbfe098a6c83936.zip apt-panopticon-cc182c9f8a6eef6be66f99de4fbfe098a6c83936.tar.gz apt-panopticon-cc182c9f8a6eef6be66f99de4fbfe098a6c83936.tar.bz2 apt-panopticon-cc182c9f8a6eef6be66f99de4fbfe098a6c83936.tar.xz |
Collate more data from the redirect results.
A few too many bandaids, gonna have to rewrite some stuff soonish.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-x | apt-panopticon.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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. | |||
1127 | local srvs = io.popen('ls -1 results/*.lua') | 1127 | local srvs = io.popen('ls -1 results/*.lua') |
1128 | for l in srvs:lines() do | 1128 | for l in srvs:lines() do |
1129 | local hst = l:sub(9, -5) | 1129 | local hst = l:sub(9, -5) |
1130 | if (l:find('_') == nil) and (nil == APT.mirrors[hst]) then | 1130 | if nil ~= l:find('_R%.lua') then hst = hst:sub(1, -3) end |
1131 | if (hst:find('_') == nil) and (nil == APT.mirrors[hst]) then | ||
1131 | local ips = loadfile(l)().IPs | 1132 | local ips = loadfile(l)().IPs |
1132 | if nil ~= ips then | 1133 | if nil ~= ips then |
1133 | debians[hst] = {Country = '', FDQN = hst, Active = 'yes', Rate = '', BaseURL = hst, Protocols = {http = true, https = true}, Bandwidth = '', IPs = ips} | 1134 | debians[hst] = {Country = '', FDQN = hst, Active = 'yes', Rate = '', BaseURL = hst, Protocols = {http = true, https = true}, Bandwidth = '', IPs = ips} |