From: Fabian Grünbichler Date: Tue, 2 Jul 2019 08:24:45 +0000 (+0200) Subject: corosync: fix multicast detection X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=81a0a9ffb7acc40a1e39e8253adaad3622010159 corosync: fix multicast detection for Corosync 3.x, multicast is only needed if the transport is explicitly set to 'udp' Signed-off-by: Fabian Grünbichler --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index d300dc9..ef724a7 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -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