mirror of
https://github.com/SagerNet/sing-geosite.git
synced 2025-12-16 14:23:16 +08:00
Remove domains with attr
This commit is contained in:
3
main.go
3
main.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user