From 3af7bf49de68f745876fb26392e013c873a1a8f7 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 28 Jan 2022 05:58:19 +1000 Subject: Include DNSRR: maybe in the DNSRR checks. --- apt-panopticon-report-email-web.lua | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'apt-panopticon-report-email-web.lua') diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 071771b..2b29cdf 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua @@ -202,11 +202,11 @@ local DNSrrTest = function(hosts, k) space = ' ' no = "no" end - if (APT.options.roundRobin.value ~= k) and (nil ~= hosts[APT.options.roundRobin.value]) and (nil ~= hosts[k].IPs) then + if (APT.options.roundRobin.value ~= k) and (nil ~= hosts[APT.options.roundRobin.value]) and (nil ~= hosts[k].IPs) and ("no" ~= hosts[k].DNSRR) then APT.allpairs(hosts[k].IPs, function(i, w, k, v) - if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value] then - if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value][i] then +-- if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value] then +-- if nil ~= hosts[APT.options.roundRobin.value].IPs[APT.options.roundRobinCname.value][i] then local log = logCount(APT.options.roundRobin.value, i) local inRR = "✅" if nil ~= log:find("❌" end @@ -218,12 +218,12 @@ local DNSrrTest = function(hosts, k) if APT.html then i = "" .. i .. "" end dns = dns .. inRR .. i end - end - end +-- end +-- end end ) - if "" == dns then dns = no end end + if "" == dns then dns = no end return dns end @@ -321,7 +321,8 @@ local makeTable = function(web, hosts) week = '