1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 12:05:35 -05:00

Amending domain matcher with returning array of all matches

This commit is contained in:
Vigilans
2020-08-11 13:31:04 +08:00
parent 65c16cd44c
commit c74a33f827
9 changed files with 225 additions and 50 deletions

View File

@@ -82,7 +82,7 @@ func NewDomainMatcher(domains []*Domain) (*DomainMatcher, error) {
}
func (m *DomainMatcher) ApplyDomain(domain string) bool {
return m.matchers.Match(domain) > 0
return len(m.matchers.Match(domain)) > 0
}
func (m *DomainMatcher) Apply(ctx *Context) bool {