aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-14 10:39:20 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-14 10:39:20 +0200
commit84334407eeee858fa59d3ba5ff2dbbfaa4e6c253 (patch)
tree951f5aa4e9ce3d7c6779fac0bb753a0394e80333 /src/plugins
parent599ead0c90720990bc6907d0448744d109341f80 (diff)
downloadrspamd-84334407eeee858fa59d3ba5ff2dbbfaa4e6c253.tar.gz
rspamd-84334407eeee858fa59d3ba5ff2dbbfaa4e6c253.zip
[Minor] Fix whitelisted_user map initialisation
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/ratelimit.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 6731419c8..1df96c2c5 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -509,7 +509,11 @@ if opts then
end
if opts['whitelisted_user'] then
- whitelisted_user = rspamd_config:add_map(opts['whitelisted_user'], 'Ratelimit whitelist user map')
+ whitelisted_user = rspamd_config:add_map({
+ ['url'] = opts['whitelisted_user'],
+ ['description'] = 'Ratelimit whitelist user map',
+ ['type'] = 'set'
+ })
end
if opts['symbol'] then