feat: Add succinct matcher support for GeoSite

and use it by default
This commit is contained in:
H1JK
2023-12-17 00:00:35 +08:00
parent 5b23b979df
commit 2bba8aa14a
9 changed files with 122 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ type GEOSITE struct {
*Base
country string
adapter string
matcher *router.DomainMatcher
matcher router.DomainMatcher
recodeSize int
}
@@ -39,7 +39,7 @@ func (gs *GEOSITE) Payload() string {
return gs.country
}
func (gs *GEOSITE) GetDomainMatcher() *router.DomainMatcher {
func (gs *GEOSITE) GetDomainMatcher() router.DomainMatcher {
return gs.matcher
}