mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-04-27 03:31:05 +03:00
Simplify two lines into one line.
This commit is contained in:
parent
be4b65fdca
commit
09fb539875
1 changed files with 1 additions and 2 deletions
|
@ -178,8 +178,7 @@ func (s *Server) Start(config *ServerConfig) error {
|
||||||
|
|
||||||
if s.dnsFilter == nil {
|
if s.dnsFilter == nil {
|
||||||
log.Printf("Creating dnsfilter")
|
log.Printf("Creating dnsfilter")
|
||||||
dnsFilterConfig := &config.Config
|
s.dnsFilter = dnsfilter.New(&s.Config)
|
||||||
s.dnsFilter = dnsfilter.New(dnsFilterConfig)
|
|
||||||
// add rules only if they are enabled
|
// add rules only if they are enabled
|
||||||
if s.FilteringEnabled {
|
if s.FilteringEnabled {
|
||||||
s.dnsFilter.AddRules(s.Filters)
|
s.dnsFilter.AddRules(s.Filters)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue