From: Vsevolod Stakhov Date: Tue, 23 Sep 2014 15:42:26 +0000 (+0100) Subject: Restore soft reject for rate limit. X-Git-Tag: 0.7.1~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=011e790385be186d1bfe9f48bda906474e089f7b;p=rspamd.git Restore soft reject for rate limit. --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index e202be587..1d9f15a6d 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -70,7 +70,7 @@ local function check_specific_limit (task, limit, key) rspamd_redis.make_request(task, upstream:get_ip_string(), upstream:get_port(), rate_set_key_cb, 'SET %b %b', key, lstr) if bucket > limit[1] then - task:set_pre_result(rspamd_actions['reject'], 'Ratelimit exceeded: ' .. key) + task:set_pre_result('soft reject', 'Ratelimit exceeded: ' .. key) end else rspamd_redis.make_request(task, upstream:get_ip_string(), upstream:get_port(), rate_set_key_cb,