network/dhcp4: disable IPv6OnlyMode= by default
As explained in #30891, IPv6OnlyMode= should be enabled with 464XLAT support, but we do not support it yet. Let's disable by default. Fixes #30891.
This commit is contained in:
committed by
Luca Boccassi
parent
3092bd7aa1
commit
7dc431839e
@@ -1455,10 +1455,12 @@ static bool link_dhcp4_ipv6_only_mode(Link *link) {
|
||||
assert(link);
|
||||
assert(link->network);
|
||||
|
||||
/* If it is explicitly specified, then honor the setting. */
|
||||
if (link->network->dhcp_ipv6_only_mode >= 0)
|
||||
return link->network->dhcp_ipv6_only_mode;
|
||||
|
||||
return link_dhcp6_enabled(link) || link_ipv6_accept_ra_enabled(link);
|
||||
/* Defaults to false, until we support 464XLAT. See issue #30891. */
|
||||
return false;
|
||||
}
|
||||
|
||||
static int dhcp4_configure(Link *link) {
|
||||
|
||||
Reference in New Issue
Block a user