diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-31 21:35:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-31 21:35:27 +0000 |
commit | a3f746d902aec4215a8d759be8cd43b987fed46a (patch) | |
tree | d658069b7e49834679034d80a6d361aa800b2631 /src/plugins/lua/ratelimit.lua | |
parent | 1038ed360c95125d6832806c1d58160d1dacb33c (diff) | |
download | rspamd-a3f746d902aec4215a8d759be8cd43b987fed46a.tar.gz rspamd-a3f746d902aec4215a8d759be8cd43b987fed46a.zip |
[Minor] Ignore skipped tasks
TODO: write a generic framework for that stuff
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 4759d553f..5eddfadba 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -622,6 +622,8 @@ local function ratelimit_cb(task) end local function ratelimit_update_cb(task) + if task:has_flag('skip') then return end + if not settings.allow_local and lua_util.is_rspamc_or_controller(task) then return end local prefixes = task:cache_get('ratelimit_prefixes') if prefixes then |