Browse Source

fix build break

pull/1331/head
Darien Raymond 6 years ago
parent
commit
fca324a399
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      app/router/condition_test.go
  2. 2
      app/router/config.go

2
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)

2
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)
}

Loading…
Cancel
Save