aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/ratelimit.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 12:44:03 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 12:44:03 +0100
commit038044d082724af9d7df63c19645d302ea13aa77 (patch)
tree29680dd2909bae7591c5ae0507351fe12b405c8e /src/plugins/lua/ratelimit.lua
parent97ab132ebb143c123ed5f4f79054a4dc517bb6c3 (diff)
parent884aaf5c034da849e9d9fc17cf55d8294292fd42 (diff)
downloadrspamd-038044d082724af9d7df63c19645d302ea13aa77.tar.gz
rspamd-038044d082724af9d7df63c19645d302ea13aa77.zip
Merge pull request #100 from eneq123/master
action: soft_reject -> "soft reject"
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r--src/plugins/lua/ratelimit.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 82548e332..2c327a7c5 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -70,8 +70,8 @@ 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
- rspamd_logger.info(string.format('[%s]:soft_reject - Ratelimit exceeded', key))
- task:set_pre_result(rspamd_actions['soft_reject'], 'Ratelimit exceeded')
+ rspamd_logger.info(string.format('[%s]:soft reject - Ratelimit exceeded', key))
+ task:set_pre_result(rspamd_actions['soft reject'], 'Ratelimit exceeded')
end
else
rspamd_redis.make_request(task, upstream:get_ip_string(), upstream:get_port(), rate_set_key_cb,