* dns: rename dnsfilter.Filter.Rule -> dnsfilter.Filter.Data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user