From 39a49f95bc02842347eea6ce2168f91483011b9f Mon Sep 17 00:00:00 2001 From: Jose Celestino Date: Tue, 14 Jan 2025 13:52:46 +0000 Subject: [PATCH] [Minor] Don't skip resolve_ip when ignore_defaults is true and ipv4 and ipv6 aren't set --- src/plugins/lua/rbl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 2326821102..2c2fe0071e 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -983,7 +983,7 @@ local function gen_rbl_callback(rule) if req.resolve_ip then -- Deal with both ipv4 and ipv6 -- Resolve names first - if rule.ipv4 and r:resolve_a({ + if (rule.ipv4 == nil or rule.ipv4) and r:resolve_a({ task = task, name = req.n, callback = gen_rbl_ip_dns_callback(req), @@ -991,7 +991,7 @@ local function gen_rbl_callback(rule) }) then nresolved = nresolved + 1 end - if rule.ipv6 and r:resolve('aaaa', { + if (rule.ipv6 == nil or rule.ipv6) and r:resolve('aaaa', { task = task, name = req.n, callback = gen_rbl_ip_dns_callback(req), -- 2.47.3