support full domain matching

This commit is contained in:
Darien Raymond
2018-08-21 21:44:20 +02:00
parent 133f54e125
commit 10beea60bb
3 changed files with 6823 additions and 0 deletions

View File

@ -50,6 +50,11 @@ func (l *ParsedList) toProto() (*router.GeoSite, error) {
Type: router.Domain_Plain,
Value: entry.Value,
})
case "full":
site.Domain = append(site.Domain, &router.Domain{
Type: router.Domain_Full,
Value: entry.Value,
})
default:
return nil, errors.New("unknown domain type: " + entry.Type)
}