Move Filter definition from dnsforward to dnsfilter, it belongs there.

This commit is contained in:
Eugene Bujak
2018-11-30 13:24:42 +03:00
parent a6e0a17454
commit 87c54ebd4c
5 changed files with 18 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ type ServerConfig struct {
UDPListenAddr *net.UDPAddr // if nil, then default is is used (port 53 on *)
BlockedResponseTTL uint32 // if 0, then default is used (3600)
Upstreams []Upstream
Filters []Filter
Filters []dnsfilter.Filter
FilteringConfig
}
@@ -119,11 +119,6 @@ var defaultValues = ServerConfig{
},
}
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
}
//
// packet loop
//