mirror of https://github.com/v2ray/v2ray-core
propagate error when adding domain condition
parent
c52310cf54
commit
ecd45ffb65
|
@ -54,7 +54,9 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) {
|
|||
if len(rr.Domain) > 0 {
|
||||
matcher := NewCachableDomainMatcher()
|
||||
for _, domain := range rr.Domain {
|
||||
matcher.Add(domain)
|
||||
if err := matcher.Add(domain); err != nil {
|
||||
return nil, newError("failed to build domain condition").Base(err)
|
||||
}
|
||||
}
|
||||
conds.Add(matcher)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue