From 09fb539875da90951d6a663aa3e758145a642745 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Mon, 3 Dec 2018 12:51:37 +0300 Subject: [PATCH] Simplify two lines into one line. --- dnsforward/dnsforward.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnsforward/dnsforward.go b/dnsforward/dnsforward.go index f60939c0..e5d2eb55 100644 --- a/dnsforward/dnsforward.go +++ b/dnsforward/dnsforward.go @@ -178,8 +178,7 @@ func (s *Server) Start(config *ServerConfig) error { if s.dnsFilter == nil { log.Printf("Creating dnsfilter") - dnsFilterConfig := &config.Config - s.dnsFilter = dnsfilter.New(dnsFilterConfig) + s.dnsFilter = dnsfilter.New(&s.Config) // add rules only if they are enabled if s.FilteringEnabled { s.dnsFilter.AddRules(s.Filters)