From 15e3f277fad7c692b641423b38d6b508b764a3f8 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 26 Oct 2023 08:40:00 +0200 Subject: [Minor] Reiterate on the previous changes - Demote message to info level - Name it returncodes_matcher for better specificity --- src/plugins/lua/rbl.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/lua/rbl.lua') diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index d1f2df69c..f2233a3e5 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -894,10 +894,10 @@ local function gen_rbl_callback(rule) description[#description + 1] = 'selector' end - if not rule.matcher then - rule.matcher = 'equality' + if not rule.returncodes_matcher then + rule.returncodes_matcher = 'equality' end - local match = matchers[rule.matcher] + local match = matchers[rule.returncodes_matcher] local callback_f = function(task) -- DNS requests to issue (might be hashed afterwards) @@ -1096,7 +1096,7 @@ local function add_rbl(key, rbl, global_opts) def_type, rbl.symbol) end - local match_type = rbl.matcher + local match_type = rbl.returncodes_matcher if match_type and rbl.returncodes and map_match_types[match_type] then if not rbl.returncodes_maps then rbl.returncodes_maps = {} -- cgit v1.2.3