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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user