aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-11 12:24:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-11 12:24:29 +0100
commitb38a1ad26bbbc0a40bbdddf2b7d6dea6c3bd049a (patch)
treef3120ef16c20c103fd14e003303c27b288201ad5 /src/plugins
parenta7e4a0407bc316c0c1d19bcf18df0f8a31727a64 (diff)
downloadrspamd-b38a1ad26bbbc0a40bbdddf2b7d6dea6c3bd049a.tar.gz
rspamd-b38a1ad26bbbc0a40bbdddf2b7d6dea6c3bd049a.zip
[Minor] Add default limit for rbl requests
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index f66186fa6..68f413b10 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -1097,6 +1097,10 @@ for key,rbl in pairs(opts.rbls or opts.rules) do
end
end
+ if not rbl.requests_limit then
+ rbl.requests_limit = rspamd_config:get_dns_max_requests()
+ end
+
local res,err = rule_schema:transform(rbl)
if not res then
rspamd_logger.errx(rspamd_config, 'invalid config for %s: %s, RBL is DISABLED',