Просмотр исходного кода

[Minor] Rbl: Adjust whitelisting one more time

tags/2.6
Vsevolod Stakhov 4 лет назад
Родитель
Сommit
d43846dfcb
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      src/plugins/lua/rbl.lua

+ 3
- 2
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

Загрузка…
Отмена
Сохранить