From 9607311fd2a7acf8612a21d268215369c9f9327c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Aug 2014 13:39:55 +0100 Subject: [PATCH] Adopt ratelimit filter. --- src/plugins/lua/ratelimit.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index fff966e1d..82548e332 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -28,6 +28,10 @@ local whitelisted_ip = nil local max_rcpt = 5 local upstreams = nil +local rspamd_logger = require "rspamd_logger" +local rspamd_redis = require "rspamd_redis" +local upstream_list = require "rspamd_upstream_list" + --- Parse atime and bucket of limit local function parse_limit_data(str) local pos,_ = string.find(str, ':') -- 2.39.5