aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-12 16:31:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-12 16:31:07 +0000
commit7ce97cded523e979fc56983f50d2ee6a635649d8 (patch)
tree0c384cc32b8883ca295fbc70db210396d68a42cb
parentad06636cc54ee400e2ca90b685296c153a3add7a (diff)
downloadrspamd-7ce97cded523e979fc56983f50d2ee6a635649d8.tar.gz
rspamd-7ce97cded523e979fc56983f50d2ee6a635649d8.zip
Fix users ratelimits
-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 b54c5280b..b00bf74af 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -248,7 +248,7 @@ local function rate_test_set(task, func)
end
-- Get user (authuser)
local auser = task:get_user()
- if auser and settings['user'] > 0 then
+ if auser and settings['user'][1] > 0 then
table.insert(args, {settings['user'], make_rate_key (auser, '<auth>', nil)})
end