From: Alen Grizonic Date: Thu, 25 Jun 2015 09:36:42 +0000 (+0200) Subject: firewall instant API call apply X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c05492d68d4e89f37b8f2082eaae0d884a3221f6;p=pve-firewall.git firewall instant API call apply --- diff --git a/src/PVE/API2/Firewall/Cluster.pm b/src/PVE/API2/Firewall/Cluster.pm index b924f4e..c4e2b63 100644 --- a/src/PVE/API2/Firewall/Cluster.pm +++ b/src/PVE/API2/Firewall/Cluster.pm @@ -175,6 +175,12 @@ __PACKAGE__->register_method({ PVE::Firewall::save_clusterfw_conf($cluster_conf); + # instant firewall update when using double (anti-lockout) API call + # -> not waiting for a firewall update at the first (timestamp enable) set + if (defined($param->{enable}) && ($param->{enable} > 1)) { + PVE::Firewall::update(); + } + return undef; }});