Remove domains with attr

This commit is contained in:
世界
2022-09-04 11:33:10 +08:00
parent 9058c3c775
commit ec6544f157
3 changed files with 148 additions and 26 deletions

View File

@@ -90,6 +90,9 @@ func parse(vGeositeData []byte) (map[string][]geosite.Item, error) {
for _, vGeositeEntry := range vGeositeList.Entry {
domains := make([]geosite.Item, 0, len(vGeositeEntry.Domain)*2)
for _, domain := range vGeositeEntry.Domain {
if len(domain.Attribute) > 0 {
continue
}
switch domain.Type {
case routercommon.Domain_Plain:
domains = append(domains, geosite.Item{