From 9cee3b3a73a82267dd7880b9ba4e4c8fd85ced1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Fri, 15 Dec 2023 11:49:16 +0100 Subject: [PATCH] fixed leak checking fw status --- daemon/firewall/nftables/nftables.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/firewall/nftables/nftables.go b/daemon/firewall/nftables/nftables.go index 257add89b0..d3e9d6d8f0 100644 --- a/daemon/firewall/nftables/nftables.go +++ b/daemon/firewall/nftables/nftables.go @@ -105,7 +105,9 @@ func (n *Nft) Stop() { n.StopCheckingRules() n.CleanRules(log.GetLogLevel() == log.DEBUG) + n.Lock() n.Running = false + n.Unlock() } // EnableInterception adds firewall rules to intercept connections