From 767456506b04ab6e11cdd74e59195059be508904 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 18 Dec 2021 00:07:00 +1000 Subject: Oops, use .value for the actual, you know, value. --- apt-panopticon.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 1a00fc7..7d08f7d 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -199,11 +199,11 @@ gatherIPs = function (host) gatherIPs(m.FQDN) IP[host][m.FQDN] = IP[m.FQDN] -- Strip them out so we don't test them twice. - if (nil ~= IP[m.FQDN]) and (nil ~= IP[host][APT.options.roundRobinCname]) then + if (nil ~= IP[m.FQDN]) and (nil ~= IP[host][APT.options.roundRobinCname.value]) then for l, n in pairs(IP[m.FQDN]) do if type(n) == 'table' then for h, p in pairs(n) do - for j, o in pairs(IP[host][APT.options.roundRobinCname]) do + for j, o in pairs(IP[host][APT.options.roundRobinCname.value]) do if h == j then IP[host][m.FQDN][l][h] = nil end end o = 0 @@ -211,7 +211,7 @@ gatherIPs = function (host) if 0 == o then IP[host][m.FQDN][l] = nil end end else - for j, o in pairs(IP[host][APT.options.roundRobinCname]) do + for j, o in pairs(IP[host][APT.options.roundRobinCname.value]) do if l == j then IP[host][m.FQDN][l] = nil end end end -- cgit v1.1