aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:09:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:09:23 +0100
commitdfedc38011cde78014be3da03abf82ed65f7d49a (patch)
tree7b50f5211e061db2d3a7a04884e7a946ddf0856b /src
parente1219df89354f7366a66b34d13b9b89f02377958 (diff)
downloadrspamd-dfedc38011cde78014be3da03abf82ed65f7d49a.tar.gz
rspamd-dfedc38011cde78014be3da03abf82ed65f7d49a.zip
Do not add IP maps twice.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/multimap.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index a5624979c..c7908ea9b 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'])