Share the iptables jump rule spec between install and cleanup

This commit is contained in:
Viktor Liu
2026-06-10 17:44:33 +02:00
parent 1b6294f2ff
commit a5d4373ddc
6 changed files with 51 additions and 52 deletions
@@ -266,6 +266,9 @@ func (m *Manager) RemoveNatRule(pair firewall.RouterPair) error {
}
func (m *Manager) SetLegacyManagement(isLegacy bool) error {
m.mutex.Lock()
defer m.mutex.Unlock()
if err := firewall.SetLegacyManagement(m.family4, isLegacy); err != nil {
return err
}