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