From fca324a3995bc07ff5fd6f0ff7d2453f4b6e2d17 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 19 Aug 2018 22:28:02 +0200 Subject: [PATCH] fix build break --- app/router/condition_test.go | 2 +- app/router/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/router/condition_test.go b/app/router/condition_test.go index 6b331545..b1adc418 100644 --- a/app/router/condition_test.go +++ b/app/router/condition_test.go @@ -189,7 +189,7 @@ func TestChinaSites(t *testing.T) { domains, err := loadGeoSite("CN") assert(err, IsNil) - matcher, err := NewCachableDomainMatcher(domains) + matcher, err := NewDomainMatcher(domains) common.Must(err) assert(matcher.ApplyDomain("163.com"), IsTrue) diff --git a/app/router/config.go b/app/router/config.go index e141062d..56a709fb 100644 --- a/app/router/config.go +++ b/app/router/config.go @@ -52,7 +52,7 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) { conds := NewConditionChan() if len(rr.Domain) > 0 { - matcher, err := NewCachableDomainMatcher(rr.Domain) + matcher, err := NewDomainMatcher(rr.Domain) if err != nil { return nil, newError("failed to build domain condition").Base(err) }