localnet: skip local node for corosync information
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Jul 2019 13:58:51 +0000 (15:58 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Jul 2019 13:58:51 +0000 (15:58 +0200)
since we neither do nor actually need to allow such traffic.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/Service/pve_firewall.pm

index 3c9fd66..d78bcb1 100755 (executable)
@@ -274,6 +274,8 @@ __PACKAGE__->register_method ({
            PVE::Corosync::for_all_corosync_addresses($corosync_conf, undef, sub {
                my ($curr_node_name, $curr_node_ip, undef, $key) = @_;
 
+               return if $curr_node_name eq $nodename;
+
                $corosync_node_found = 1;
 
                $key =~ m/(?:ring|link)(\d+)_addr/;