diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-14 10:39:20 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-14 10:39:20 +0200 |
commit | 84334407eeee858fa59d3ba5ff2dbbfaa4e6c253 (patch) | |
tree | 951f5aa4e9ce3d7c6779fac0bb753a0394e80333 /src/plugins | |
parent | 599ead0c90720990bc6907d0448744d109341f80 (diff) | |
download | rspamd-84334407eeee858fa59d3ba5ff2dbbfaa4e6c253.tar.gz rspamd-84334407eeee858fa59d3ba5ff2dbbfaa4e6c253.zip |
[Minor] Fix whitelisted_user map initialisation
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 6 |
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 |