]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Firewall.pm
corosync: fix multicast detection
[pve-firewall.git] / src / PVE / Firewall.pm
index d300dc99b9e9fe98fe9ad2c7724372a46fe76cca..ef724a7085871580b7bc11807fb29699827561a3 100644 (file)
@@ -2418,7 +2418,8 @@ sub enable_host_firewall {
        });
 
        # allow multicast only if enabled in config
-       $multicast_enabled = $corosync_conf->{main}->{totem}->{transport} // 0;
+       my $corosync_transport = $corosync_conf->{main}->{totem}->{transport};
+       $multicast_enabled = defined($corosync_transport) && $corosync_transport eq 'udp';
     }
 
     # host inbound firewall