aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon-report-web.lua25
1 files changed, 15 insertions, 10 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index f17bf54..33b8fe2 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -124,17 +124,22 @@ local C = function(s) log(-1, "CRITICAL", s) end
124local mirrors = loadfile("results/mirrors.lua")() 124local mirrors = loadfile("results/mirrors.lua")()
125 125
126local revDNS = function(dom, IP) 126local revDNS = function(dom, IP)
127 if "deb.devuan.org" ~= dom then return "" end 127 if "deb.devuan.org" ~= dom then
128 for k, v in pairs(mirrors) do 128 if nil ~= mirrors["deb.devuan.org"].IPs["deb.roundr.devuan.org"][IP] then
129 if "deb.devuan.org" ~= k then 129 return "DNS-RR"
130 local IPs = v.IPs 130 end
131 for i, u in pairs(IPs) do 131 else
132 if "table" == type(u) then 132 for k, v in pairs(mirrors) do
133 for h, t in pairs(u) do 133 if "deb.devuan.org" ~= k then
134 if IP == h then return k end 134 local IPs = v.IPs
135 for i, u in pairs(IPs) do
136 if "table" == type(u) then
137 for h, t in pairs(u) do
138 if IP == h then return k end
139 end
140 else
141 if IP == i then return k end
135 end 142 end
136 else
137 if IP == i then return k end
138 end 143 end
139 end 144 end
140 end 145 end