]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Ratelimit: Fix dynamic score
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 May 2019 14:50:22 +0000 (15:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 May 2019 13:37:18 +0000 (14:37 +0100)
src/plugins/lua/ratelimit.lua

index f2358a483b5a7557d193a8d01e8f12583b49fdd9..ca4de6216306957b1c18e9964b52aeab2b07156c 100644 (file)
@@ -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',