]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix ip_score map configuration
authorAndrew Lewis <nerf@judo.za.org>
Wed, 29 Mar 2017 10:36:16 +0000 (12:36 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 29 Mar 2017 10:36:16 +0000 (12:36 +0200)
 - Issue: #1563
 - Reported by: @Dmitry55

src/plugins/lua/ip_score.lua

index 04f1fb06e8b8cf5dd9c22e45b493857ad620d793..4d9573382ab28f7612ff2ae5b8e262c4dd662cb2 100644 (file)
@@ -353,10 +353,10 @@ local configure_ip_score_module = function()
     rspamd_logger.infox(rspamd_config, 'no servers are specified')
     return
   end
-  whitelist = rspamd_map_add('ip_score', 'asn_cc_whitelist', 'map',
-    'IP score whitelisted ips')
-  asn_cc_whitelist = rspamd_map_add('ip_score', 'whitelist', 'radix',
+  asn_cc_whitelist = rspamd_map_add('ip_score', 'asn_cc_whitelist', 'map',
     'IP score whitelisted ASNs/countries')
+  whitelist = rspamd_map_add('ip_score', 'whitelist', 'radix',
+    'IP score whitelisted ips')
   return true
 end