diff options
author | onefang | 2019-11-24 06:37:31 +1000 |
---|---|---|
committer | onefang | 2019-11-24 06:37:31 +1000 |
commit | 429ff902862de3fcce22d31ea555e1c69df1976e (patch) | |
tree | fb980a47c81757f7ba17b2767515fb31fa091833 /apt-panopticon-report-web.lua | |
parent | Space sentences properly on the web. (diff) | |
download | apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.zip apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.gz apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.bz2 apt-panopticon-429ff902862de3fcce22d31ea555e1c69df1976e.tar.xz |
Implement DNS-RR test fully.
Diffstat (limited to 'apt-panopticon-report-web.lua')
-rwxr-xr-x | apt-panopticon-report-web.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index 810ac45..7ebf2d3 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua | |||
@@ -125,8 +125,10 @@ local mirrors = loadfile("results/mirrors.lua")() | |||
125 | 125 | ||
126 | local revDNS = function(dom, IP) | 126 | local revDNS = function(dom, IP) |
127 | if "deb.devuan.org" ~= dom then | 127 | if "deb.devuan.org" ~= dom then |
128 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][IP] then | 128 | if nil ~= mirrors["deb.devuan.org"] then |
129 | return "DNS-RR" | 129 | if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][IP] then |
130 | return "DNS-RR" | ||
131 | end | ||
130 | end | 132 | end |
131 | else | 133 | else |
132 | for k, v in pairs(mirrors) do | 134 | for k, v in pairs(mirrors) do |
@@ -278,7 +280,7 @@ if nil == file then C("opening mirrors file - " .. e) else | |||
278 | local updated = "[<font color='gray'><b>skip</b></font>]" | 280 | local updated = "[<font color='gray'><b>skip</b></font>]" |
279 | 281 | ||
280 | -- DNS-RR test. | 282 | -- DNS-RR test. |
281 | if "deb.devuan.org" ~= k then | 283 | if ("deb.devuan.org" ~= k) and (nil ~= mirrors["deb.devuan.org"]) then |
282 | for l, w in pairs(mirrors[k].IPs) do | 284 | for l, w in pairs(mirrors[k].IPs) do |
283 | if type(w) == "table" then | 285 | if type(w) == "table" then |
284 | for i, u in pairs(w) do | 286 | for i, u in pairs(w) do |