# HG changeset patch # User Matthew Wild # Date 1779647431 -3600 # Node ID 7f3ad8a5b2ab3786ef3548e8fce86b4693918f4f # Parent d4da95d6d97717d90792b29b61ce9d6164a10f20 mod_firewall: FROM COUNTRY: Fix incorrect variable use in generated code diff -r d4da95d6d977 -r 7f3ad8a5b2ab mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Sun May 24 19:15:21 2026 +0100 +++ b/mod_firewall/mod_firewall.lua Sun May 24 19:30:31 2026 +0100 @@ -300,12 +300,12 @@ return "--"; end if ip.proto == "IPv6" and geov6 then - local geoinfo = geoinfo:query_by_addr6(ip.addr); + local geoinfo = geov6:query_by_addr6(ip.addr); if geoinfo then return geoinfo[what or "code"]; end elseif ip.proto == "IPv4" and geov4 then - local geoinfo = geoinfo:query_by_addr(ip.addr); + local geoinfo = geov4:query_by_addr(ip.addr); if geoinfo then return geoinfo[what or "code"]; end