X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FFirewall%2FCluster.pm;fp=src%2FPVE%2FAPI2%2FFirewall%2FCluster.pm;h=c4e2b63bcf8d5e1b783d7552be9fa64a044b3c39;hp=b924f4edc22de2250b3db3c7a4e3aa215ce83f04;hb=c05492d68d4e89f37b8f2082eaae0d884a3221f6;hpb=f0184215f9cbe8da2223069aa375892f89826457 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; }});