From: Andrew Lewis Date: Thu, 21 Dec 2023 11:11:11 +0000 (+0200) Subject: [Minor] ratelimit: make per-bucket symbol behave like global symbol X-Git-Tag: 3.8.0~23^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4755%2Fhead;p=thirdparty%2Frspamd.git [Minor] ratelimit: make per-bucket symbol behave like global symbol --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 9f8292d6be..8227d9a6cb 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -512,7 +512,7 @@ local function ratelimit_cb(task) bucket.burst, bucket.rate, data[2], data[3], data[4], lim_key) - if not settings.symbol and not bucket.skip_soft_reject then + if not (bucket.symbol or settings.symbol) and not bucket.skip_soft_reject then if not bucket.message then task:set_pre_result('soft reject', message_func(task, lim_name, prefix, bucket, lim_key), N)