diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-12 16:31:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-12 16:31:07 +0000 |
commit | 7ce97cded523e979fc56983f50d2ee6a635649d8 (patch) | |
tree | 0c384cc32b8883ca295fbc70db210396d68a42cb | |
parent | ad06636cc54ee400e2ca90b685296c153a3add7a (diff) | |
download | rspamd-7ce97cded523e979fc56983f50d2ee6a635649d8.tar.gz rspamd-7ce97cded523e979fc56983f50d2ee6a635649d8.zip |
Fix users ratelimits
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 |
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 |