]> source.dussan.org Git - rspamd.git/commitdiff
action: soft_reject -> "soft reject" 100/head
authoreneq123 <you@example.com>
Mon, 22 Sep 2014 09:31:09 +0000 (13:31 +0400)
committereneq123 <you@example.com>
Mon, 22 Sep 2014 09:31:09 +0000 (13:31 +0400)
src/plugins/lua/ratelimit.lua

index 82548e33223bfbe51d8f104c5705ba099753d6eb..2c327a7c5e29f6359d299cbfdc4d74072b2943ae 100644 (file)
@@ -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,