aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-13 15:50:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-13 15:50:22 +0100
commit2a88aa10df6ccec33effa05e89315d2e7076ef6b (patch)
tree3945e09130e22792e538de66feb4f25b7b21ee31 /src
parent05f70739e4d89c33402312395cd5fa3a7098218f (diff)
downloadrspamd-2a88aa10df6ccec33effa05e89315d2e7076ef6b.tar.gz
rspamd-2a88aa10df6ccec33effa05e89315d2e7076ef6b.zip
[Fix] Ratelimit: Fix dynamic score
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/ratelimit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index f2358a483..ca4de6216 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -594,7 +594,7 @@ local function ratelimit_cb(task)
if data[1] == 1 then
-- set symbol only and do NOT soft reject
if settings.symbol then
- task:insert_result(settings.symbol, 0.0,
+ task:insert_result(settings.symbol, 1.0,
string.format('%s(%s)', lim_name, lim_key))
rspamd_logger.infox(task,
'set_symbol_only: ratelimit "%s(%s)" exceeded, (%s / %s): %s (%s:%s dyn); redis key: %s',