From feed999517dada912c26db198a00d6e63a6f5a9c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Mar 2017 09:25:13 +0000 Subject: [PATCH] [Fix] Fix ratelimit + greylisting Issue: #1498 --- src/plugins/lua/ratelimit.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index d1503f3c3..1576b4130 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -467,7 +467,11 @@ local function rate_test(task) end --- Update limit local function rate_set(task) - rate_test_set(task, set_limits) + local action = task:get_metric_action('default') + + if action ~= 'soft reject' then + rate_test_set(task, set_limits) + end end -- 2.39.5