mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-02 23:35:40 -05:00
dont start periodic task until necessary
This commit is contained in:
@@ -100,14 +100,8 @@ func NewDomainMatcher(domains []*Domain) (*DomainMatcher, error) {
|
||||
g.Add(m)
|
||||
}
|
||||
|
||||
if len(domains) < 64 {
|
||||
return &DomainMatcher{
|
||||
matchers: g,
|
||||
}, nil
|
||||
}
|
||||
|
||||
return &DomainMatcher{
|
||||
matchers: strmatcher.NewCachedMatcherGroup(g),
|
||||
matchers: g,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user