diff options
-rw-r--r-- | src/plugins/lua/url_redirector.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua index 8b60abb94..a5154c5c0 100644 --- a/src/plugins/lua/url_redirector.lua +++ b/src/plugins/lua/url_redirector.lua @@ -107,7 +107,7 @@ local function cache_url(task, orig_url, url, key, param) redis_trim_cb, --callback 'ZREMRANGEBYRANK', -- command {settings.top_urls_key, '0', - tostring(settings.top_urls_count + 1)} -- arguments + tostring(-(settings.top_urls_count + 1))} -- arguments ) if not ret then rspamd_logger.errx(task, 'cannot trim top urls set') |