commit 563198e: [Minor] ratelimit: make per-bucket symbol behave like global symbol

Andrew Lewis nerf at judo.za.org
Mon Jul 29 17:50:39 UTC 2024


Author: Andrew Lewis
Date: 2023-12-21 13:11:11 +0200
URL: https://github.com/rspamd/rspamd/commit/563198e11abe3b4084cf106de7e337a22f0e87b0 (refs/pull/4755/head)

[Minor] ratelimit: make per-bucket symbol behave like global symbol

---
 src/plugins/lua/ratelimit.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 9f8292d6b..8227d9a6c 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)


More information about the Commits mailing list