1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 15:25:28 -05:00

fix build break

This commit is contained in:
Darien Raymond
2018-08-19 22:28:02 +02:00
parent 26f52e61db
commit fca324a399
2 changed files with 2 additions and 2 deletions

View File

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

View File

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