dnsforward: imp code

This commit is contained in:
Stanislav Chzhen 2024-08-21 21:53:01 +03:00
parent a64fd6b3f0
commit a1c0011273

View File

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