From dfedc38011cde78014be3da03abf82ed65f7d49a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 May 2015 14:09:23 +0100 Subject: [PATCH] Do not add IP maps twice. --- src/plugins/lua/multimap.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index a5624979cb..c7908ea9bd 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -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']) -- 2.47.3