* dns: rename dnsfilter.Filter.Rule -> dnsfilter.Filter.Data

This commit is contained in:
Simon Zolin
2019-05-15 15:32:42 +03:00
parent 9644f79a03
commit bd68bf2e25
3 changed files with 18 additions and 20 deletions

View File

@@ -122,8 +122,8 @@ type Dnsfilter struct {
// Filter represents a filter list
type Filter struct {
ID int64 `json:"id"` // auto-assigned when filter is added (see nextFilterID), json by default keeps ID uppercase but we need lowercase
Rules []string `json:"-" yaml:"-"` // not in yaml or json
ID int64 `json:"id"` // auto-assigned when filter is added (see nextFilterID), json by default keeps ID uppercase but we need lowercase
Data []byte `json:"-" yaml:"-"` // List of rules divided by '\n'
}
//go:generate stringer -type=Reason