Browse Source

[Minor] Rbl: Adjust whitelisting one more time

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
d43846dfcb
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/plugins/lua/rbl.lua

+ 3
- 2
src/plugins/lua/rbl.lua View File

@@ -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

Loading…
Cancel
Save