summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-25 13:39:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-25 13:39:55 +0100
commit9607311fd2a7acf8612a21d268215369c9f9327c (patch)
tree733f5f9cd45b3173dd352203f037b045151ee59b /src/plugins
parent7bc8f019451c51f212cadce58482bfde53166aa4 (diff)
downloadrspamd-9607311fd2a7acf8612a21d268215369c9f9327c.tar.gz
rspamd-9607311fd2a7acf8612a21d268215369c9f9327c.zip
Adopt ratelimit filter.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/ratelimit.lua4
1 files changed, 4 insertions, 0 deletions
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, ':')