diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-07 13:32:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-07 13:32:32 +0100 |
commit | 4b6e9116cb35304948332c5d70bb74cf9451b612 (patch) | |
tree | 0eb8ca928bba145235de1d02bfa44400b7c924f7 /src/plugins | |
parent | 2648124d978132498a36313936457a015e56b073 (diff) | |
download | rspamd-4b6e9116cb35304948332c5d70bb74cf9451b612.tar.gz rspamd-4b6e9116cb35304948332c5d70bb74cf9451b612.zip |
[Feature] Reuse maps in multimap module more aggressively
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/multimap.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 8a2b21ddf..18a66a23f 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -895,8 +895,8 @@ local function add_multimap_rule(key, newrule) else if type(newrule['map']) == 'string' then local map = urls[newrule['map']] - if map and map['type'] == newrule['type'] - and map['regexp'] == newrule['regexp'] then + if map and map['regexp'] == newrule['regexp'] and + map['glob'] == newrule['glob'] then if newrule['type'] == 'ip' then newrule['radix'] = map['map'] else |