From e72d4d6c257b40105bc3d0d0dc5b25783e8a4e17 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 19 Aug 2018 21:07:31 +0200 Subject: [PATCH] fix matcher group --- common/strmatcher/strmatcher.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/strmatcher/strmatcher.go b/common/strmatcher/strmatcher.go index 811110752..15219a0f7 100644 --- a/common/strmatcher/strmatcher.go +++ b/common/strmatcher/strmatcher.go @@ -89,6 +89,10 @@ func (g *MatcherGroup) Match(pattern string) uint32 { return c } + if c := g.domainMatcher.Match(pattern); c > 0 { + return c + } + for _, e := range g.otherMatchers { if e.m.Match(pattern) { return e.id