1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-28 10:15:23 +00:00

output debug message when ACAutomatonDomainMatcher is enabled.

This commit is contained in:
Shelikhoo 2021-03-03 22:56:12 +00:00
parent 38b0f026fe
commit e65f96fa6b
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -73,8 +73,9 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) {
case "ac": case "ac":
matcher, err := NewACAutomatonDomainMatcher(rr.Domain) matcher, err := NewACAutomatonDomainMatcher(rr.Domain)
if err != nil { if err != nil {
return nil, newError("failed to build domain condition").Base(err) return nil, newError("failed to build domain condition with ACAutomatonDomainMatcher").Base(err)
} }
newError("ACAutomatonDomainMatcher is enabled for ", len(rr.Domain), "domain rules(s)").AtDebug().WriteToLog()
conds.Add(matcher) conds.Add(matcher)
default: default:
matcher, err := NewDomainMatcher(rr.Domain) matcher, err := NewDomainMatcher(rr.Domain)