From d43846dfcb21b6b1254cc0c0f9495d4441ccffb3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Apr 2020 20:28:59 +0100 Subject: [PATCH] [Minor] Rbl: Adjust whitelisting one more time --- src/plugins/lua/rbl.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index d82a89948..430afaf34 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -307,8 +307,9 @@ local function gen_rbl_callback(rule) 'whitelisted request to %s by %s (%s) rbl rule (%s checked type, %s whitelist type)', req_str, wl.type, wl.symbol, what, wl.type) if wl.type == what then - -- Add symbol option (0.0 / 0.0 is used to denounce NAN that prevents score modification) - task:adjust_result(wl.symbol, 0.0 / 0.0, rule.symbol) + -- This was decided to be a bad idea as in case of whitelisting a request to blacklist + -- is not even sent + --task:adjust_result(wl.symbol, 0.0 / 0.0, rule.symbol) return true end -- 2.39.5