1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-25 23:19:09 -04:00

doc for strmatcher interface

This commit is contained in:
Darien Raymond
2018-08-20 15:39:58 +02:00
parent 44c759eeab
commit 059dfdbb97
6 changed files with 31 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ type DomainMatcher struct {
}
func NewDomainMatcher(domains []*Domain) (*DomainMatcher, error) {
g := strmatcher.NewMatcherGroup()
g := new(strmatcher.MatcherGroup)
for _, d := range domains {
m, err := domainToMatcher(d)
if err != nil {