Browse Source

[Feature] Reuse maps in multimap module more aggressively

tags/1.7.8
Vsevolod Stakhov 6 years ago
parent
commit
4b6e9116cb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/plugins/lua/multimap.lua

+ 2
- 2
src/plugins/lua/multimap.lua View File

@@ -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

Loading…
Cancel
Save