]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/PVE/Corosync.pm
corosync: use correct default resolving strategy
[pve-cluster.git] / data / PVE / Corosync.pm
index 6a27ab085a4b8d5ef532dd27ba617bbca0b3cb6c..8b5c91e0da084da4e9ba7423176872a0c16ef5af 100644 (file)
@@ -296,7 +296,8 @@ sub resolve_hostname_like_corosync {
     my ($hostname, $corosync_conf) = @_;
 
     my $corosync_strategy = $corosync_conf->{main}->{totem}->{ip_version};
-    $corosync_strategy = lc ($corosync_strategy // "any");
+    # Corosync 2.x default
+    $corosync_strategy = lc ($corosync_strategy // "ipv4");
 
     my $match_ip_and_version = sub {
        my ($addr) = @_;