Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Aug 21, 2024
1 parent a64fd6b commit a1c0011
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/dnsforward/ipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ func newIpsetHandler(
return h, nil
}

// close closes the Linux Netfilter connections.
// close closes the Linux Netfilter connections. close can be called on a nil
// handler.
func (h *ipsetHandler) close() (err error) {
if h.ipsetMgr != nil {
if h != nil && h.ipsetMgr != nil {
return h.ipsetMgr.Close()
}

Expand Down

0 comments on commit a1c0011

Please sign in to comment.