From 4b6e9116cb35304948332c5d70bb74cf9451b612 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 7 Jul 2018 13:32:32 +0100 Subject: [Feature] Reuse maps in multimap module more aggressively --- src/plugins/lua/multimap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') 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 -- cgit v1.2.3