diff options
Diffstat (limited to 'apt-panopticon-report-email-web.lua')
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 73e0338..dd8cff6 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -18,8 +18,8 @@ APT.debians = loadfile("results/debians.lua")() | |||
18 | local revDNS = function(hosts, dom, IP) | 18 | local revDNS = function(hosts, dom, IP) |
19 | if APT.options.roundRobin.value ~= dom then | 19 | if APT.options.roundRobin.value ~= dom then |
20 | if nil ~= hosts[APT.options.roundRobin.value] then | 20 | if nil ~= hosts[APT.options.roundRobin.value] then |
21 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname] then | 21 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value] then |
22 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname][IP] then | 22 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value][IP] then |
23 | if APT.html then | 23 | if APT.html then |
24 | return "<font color='purple'><b>DNS-RR</b></font>" | 24 | return "<font color='purple'><b>DNS-RR</b></font>" |
25 | else | 25 | else |
@@ -203,8 +203,8 @@ local DNSrrTest = function(hosts, k) | |||
203 | if (APT.options.roundRobin.value ~= k) and (nil ~= hosts[APT.options.roundRobin.value]) and (nil ~= hosts[k].IPs) then | 203 | if (APT.options.roundRobin.value ~= k) and (nil ~= hosts[APT.options.roundRobin.value]) and (nil ~= hosts[k].IPs) then |
204 | APT.allpairs(hosts[k].IPs, | 204 | APT.allpairs(hosts[k].IPs, |
205 | function(i, w, k, v) | 205 | function(i, w, k, v) |
206 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname] then | 206 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value] then |
207 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname][i] then | 207 | if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value][i] then |
208 | local log = logCount(APT.options.roundRobin.value, i) | 208 | local log = logCount(APT.options.roundRobin.value, i) |
209 | if "" ~= log then | 209 | if "" ~= log then |
210 | if "" == dns then dns = " " else dns = dns .. space end | 210 | if "" == dns then dns = " " else dns = dns .. space end |
@@ -365,7 +365,7 @@ local makeIPlist = function(hosts) | |||
365 | for l, w in pairs(hosts[k].IPs) do | 365 | for l, w in pairs(hosts[k].IPs) do |
366 | if type(w) == "table" then | 366 | if type(w) == "table" then |
367 | -- Don't output the extra DNS-RR entries that are for admin reasons. | 367 | -- Don't output the extra DNS-RR entries that are for admin reasons. |
368 | if ((APT.options.roundRobin.value == k) and (APT.options.roundRobinCname == l)) or (APT.options.roundRobin.value ~= k) then | 368 | if ((APT.options.roundRobin.value == k) and (APT.options.roundRobinCname.value == l)) or (APT.options.roundRobin.value ~= k) then |
369 | n[l] = {} | 369 | n[l] = {} |
370 | for i, u in pairs(w) do | 370 | for i, u in pairs(w) do |
371 | if (APT.testing("IPv6") and ("AAAA" == u)) or ("A" == u) then | 371 | if (APT.testing("IPv6") and ("AAAA" == u)) or ("A" == u) then |