Browse Source

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

tags/3.8.0
Andrew Lewis 5 months ago
parent
commit
563198e11a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/lua/ratelimit.lua

+ 1
- 1
src/plugins/lua/ratelimit.lua View File

@@ -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)

Loading…
Cancel
Save