]> source.dussan.org Git - rspamd.git/commitdiff
Do not add IP maps twice.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:09:23 +0000 (14:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:09:23 +0000 (14:09 +0100)
src/plugins/lua/multimap.lua

index a5624979cbb9072f29c330e6dc3b95d8b165f02e..c7908ea9bd12087a9a27fd7892b707d40c515a43 100644 (file)
@@ -79,7 +79,6 @@ local function check_multimap(task)
       end
     end
   end
-
   -- IP rules
   local ip = task:get_from_ip()
   if ip:is_valid() then
@@ -146,7 +145,6 @@ local function add_multimap_rule(key, newrule)
     if newrule['type'] == 'ip' then
       newrule['radix'] = rspamd_config:add_radix_map (newrule['map'], newrule['description'])
       if newrule['radix'] then
-        table.insert(rules, newrule)
         return newrule
       else
         rspamd_logger.warn('Cannot add rule: map doesn\'t exists: ' .. newrule['map'])