aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 16:42:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 16:42:26 +0100
commit011e790385be186d1bfe9f48bda906474e089f7b (patch)
treec2d94a70b72d5e79b4f8d75ef90ddb8b24af5ffa
parent1018b509c8a9d2c0b48fc34510b6a32095733959 (diff)
downloadrspamd-011e790385be186d1bfe9f48bda906474e089f7b.tar.gz
rspamd-011e790385be186d1bfe9f48bda906474e089f7b.zip
Restore soft reject for rate limit.
-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 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,