]> source.dussan.org Git - rspamd.git/commitdiff
Whitelisted ip map should be radix, not hash.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 May 2015 18:19:54 +0000 (19:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 May 2015 18:19:54 +0000 (19:19 +0100)
src/plugins/lua/ratelimit.lua

index 99f5d83b8521bb654f3f5580c65cfee0b86066fb..afc8eda0f88b0757e0fa87d9b878f70ba56fff32 100644 (file)
@@ -368,7 +368,7 @@ if opts then
   end
 
   if opts['whitelisted_ip'] then
-    whitelisted_ip = rspamd_config:add_hash_map(opts['whitelisted_ip'], 'Ratelimit whitelist ip map')
+    whitelisted_ip = rspamd_config:add_radix_map(opts['whitelisted_ip'], 'Ratelimit whitelist ip map')
   end
 
   if opts['max_rcpt'] then