]> git.proxmox.com Git - pve-container.git/commitdiff
fix #4164: use DHCP=yes instead of DHCP=both in systemd-networkd config
authorOguz Bektas <o.bektas@proxmox.com>
Tue, 19 Jul 2022 11:24:56 +0000 (13:24 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 22 Jul 2022 12:48:06 +0000 (14:48 +0200)
"both" option is deprecated, this gets rid of the warning in the journal

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
[Note: 'yes' was introduced with v219 in 2015, deprecated with v242]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Setup/Base.pm

index 8580bf039eafa08f5ef6fd57d99e7dfd465ed63d..cc1291462663c7659e606496b8d15517bbfed038 100644 (file)
@@ -261,7 +261,7 @@ DATA
        my ($has_ipv4, $has_ipv6);
 
        # DHCP bitflags:
-       my @DHCPMODES = ('no', 'v4', 'v6', 'both');
+       my @DHCPMODES = ('no', 'v4', 'v6', 'yes');
        my ($NONE, $DHCP4, $DHCP6, $BOTH) = (0, 1, 2, 3);
        my $dhcp = $NONE;
        my $accept_ra = 'false';