diff options
author | onefang | 2021-11-18 22:12:38 +1000 |
---|---|---|
committer | onefang | 2021-11-18 22:12:38 +1000 |
commit | b15b6da64a56536dcf859cc430424987cff125b6 (patch) | |
tree | b56a820d856b89e17d4e86b982f52da5cfcf2c41 | |
parent | io.popen returns nil sometimes, deal with that. (diff) | |
download | apt-panopticon-b15b6da64a56536dcf859cc430424987cff125b6.zip apt-panopticon-b15b6da64a56536dcf859cc430424987cff125b6.tar.gz apt-panopticon-b15b6da64a56536dcf859cc430424987cff125b6.tar.bz2 apt-panopticon-b15b6da64a56536dcf859cc430424987cff125b6.tar.xz |
FDQN -> FQDN
How did this last so long?
-rwxr-xr-x | apt-panopticon.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 482a2ac..7e3b4ef 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -590,7 +590,7 @@ local validateURL = function(m) | |||
590 | local p = url.parse("http://" .. m.BaseURL) | 590 | local p = url.parse("http://" .. m.BaseURL) |
591 | if nil == p.path then p.path = '' end | 591 | if nil == p.path then p.path = '' end |
592 | if nil ~= p.port then p.authority = authority .. ':' .. p.port end | 592 | if nil ~= p.port then p.authority = authority .. ':' .. p.port end |
593 | if nil == m.FDQN then W("Something wrong in FDQN from mirror_list.txt! nil", "", "", p.authority) else | 593 | if nil == m.FQDN then W("Something wrong in FQDN from mirror_list.txt! nil", "", "", p.authority) else |
594 | if m.FQDN ~= p.authority then W("Something wrong in FDQN from mirror_list.txt! " .. m.FDQN, "", "", p.authority) end | 594 | if m.FQDN ~= p.authority then W("Something wrong in FDQN from mirror_list.txt! " .. m.FDQN, "", "", p.authority) end |
595 | end | 595 | end |
596 | if nil == m.BaseURL then W("Something wrong in BaseURL from mirror_list.txt! nil", "", "", p.authority) else | 596 | if nil == m.BaseURL then W("Something wrong in BaseURL from mirror_list.txt! nil", "", "", p.authority) else |
@@ -1183,7 +1183,7 @@ else | |||
1183 | if (hst:find('_') == nil) and (nil == APT.mirrors[hst]) then | 1183 | if (hst:find('_') == nil) and (nil == APT.mirrors[hst]) then |
1184 | local ips = loadfile(l)().IPs | 1184 | local ips = loadfile(l)().IPs |
1185 | if nil ~= ips then | 1185 | if nil ~= ips then |
1186 | debians[hst] = {Country = '', FDQN = hst, Active = 'yes', Rate = '', BaseURL = hst, Protocols = {http = true, https = true}, Bandwidth = '', IPs = ips} | 1186 | debians[hst] = {Country = '', FQDN = hst, Active = 'yes', Rate = '', BaseURL = hst, Protocols = {http = true, https = true}, Bandwidth = '', IPs = ips} |
1187 | local baseFiles = {} | 1187 | local baseFiles = {} |
1188 | local IPfiles = {} | 1188 | local IPfiles = {} |
1189 | for i, a in pairs(ips) do | 1189 | for i, a in pairs(ips) do |