shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

Q: DomainFile.Matcher的含义 #180

Closed time-river closed 4 years ago

time-river commented 4 years ago

文档中提到:

DomainFile.Matcher: Matching policy and implementation, including "full-list", "full-map", "regex-list" and "suffix-tree"

能否分别为full-list / full-map / regex-list / suffix-tree / mix-list举个例子呢?

SharerMax commented 4 years ago

full-list / full-map 为全匹配,(一种是list结构,一种是map结构,两种存储结构,和匹配方式无关) regex-list 按正则表达式匹配 suffix-tree 按域名后缀匹配 mix-list 是按你指定的方式匹配,格式为[domain|regex|keyword|full]:域名

goodffd commented 2 years ago

full-map和suffix-tree的区别能举例一下么