Browse Source

[Fix] Ratelimit: Fix dynamic score

tags/2.0
Vsevolod Stakhov 5 years ago
parent
commit
2a88aa10df
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

@@ -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',

Loading…
Cancel
Save