1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-10 14:39:08 -04:00

Refactor: A faster DomainMatcher implementation (#587)

* a faster DomainMatcher implementation

* rename benchmark name

* fix linting errors
This commit is contained in:
DarthVader
2021-01-20 15:53:07 +08:00
committed by GitHub
parent c89aae1380
commit de618121ad
7 changed files with 586 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) {
conds := NewConditionChan()
if len(rr.Domain) > 0 {
matcher, err := NewDomainMatcher(rr.Domain)
matcher, err := NewACAutomatonDomainMatcher(rr.Domain)
if err != nil {
return nil, newError("failed to build domain condition").Base(err)
}