From 563198e11abe3b4084cf106de7e337a22f0e87b0 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 21 Dec 2023 13:11:11 +0200 Subject: [PATCH] [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) -- 2.39.5