Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Jan 29, 2021
1 parent 2b84d27 commit e5ab957
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 193 deletions.
8 changes: 7 additions & 1 deletion internal/dnsforward/dnsforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ func (s *Server) Close() {
s.stats = nil
s.queryLog = nil
s.dnsProxy = nil

err := s.ipset.Close()
if err != nil {
log.Error("closing ipset: %s", err)
}

s.Unlock()
}

Expand Down Expand Up @@ -190,7 +196,7 @@ func (s *Server) Prepare(config *ServerConfig) error {

// Initialize IPSET configuration
// --
err := s.ipset.init(s.conf.IPSETList, nil)
err := s.ipset.init(s.conf.IPSETList)
if err != nil {
return err
}
Expand Down
Loading

0 comments on commit e5ab957

Please sign in to comment.