]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] ratelimit: make per-bucket symbol behave like global symbol 4755/head
authorAndrew Lewis <nerf@judo.za.org>
Thu, 21 Dec 2023 11:11:11 +0000 (13:11 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 21 Dec 2023 11:11:11 +0000 (13:11 +0200)
src/plugins/lua/ratelimit.lua

index 9f8292d6be8767bf4ce50f835e10052085a676c4..8227d9a6cbf27d55c42727d04ee64afbe1adc1c0 100644 (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)