From: Vsevolod Stakhov Date: Mon, 13 May 2019 14:50:22 +0000 (+0100) Subject: [Fix] Ratelimit: Fix dynamic score X-Git-Tag: 1.9.4~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f37d727990c4992d3590236a977ebb99f07153f;p=rspamd.git [Fix] Ratelimit: Fix dynamic score --- 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',