Simplify two lines into one line.

This commit is contained in:
Eugene Bujak 2018-12-03 12:51:37 +03:00
parent be4b65fdca
commit 09fb539875
1 changed files with 1 additions and 2 deletions

View File

@ -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)