ソースを参照

[Minor] Rbl: Adjust whitelisting one more time

tags/2.6
Vsevolod Stakhov 4年前
コミット
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

読み込み中…
キャンセル
保存