瀏覽代碼

[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

Loading…
取消
儲存