X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FFirewall.pm;h=d5d4950b6aaa4be45c796d37c084dc599452976c;hp=ba0ddae897299c20563dda989441cebe9b79a7c1;hb=b22130d3fd198a3d5ad9113f87c4ae3cf68c0303;hpb=51e57fee88c0d9be0206f07fb8a7799987b55126;ds=sidebyside diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index ba0ddae..d5d4950 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -2882,11 +2882,7 @@ sub update { die "Firewall is disabled - cannot start\n" if !$enable && $start; if (!$enable) { - if ($status ne 'stopped') { - print "trying to stop firewall (firewall is disabled)\n" if $verbose; - PVE::Firewall::remove_pvefw_chains(); - PVE::Firewall::save_pvefw_status('stopped'); - } + PVE::Firewall::remove_pvefw_chains(); print "Firewall disabled\n" if $verbose; return; }