mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
network/dhcp6: skip to check existence of DHCPv6 address when UseAddress=no
Follow-up for1536b7b2d0and5f950e5621. Fixes #29979.
This commit is contained in:
@@ -99,13 +99,15 @@ int dhcp6_check_ready(Link *link) {
|
||||
int r;
|
||||
|
||||
assert(link);
|
||||
assert(link->network);
|
||||
|
||||
if (link->dhcp6_messages > 0) {
|
||||
log_link_debug(link, "%s(): DHCPv6 addresses and routes are not set.", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!link_check_addresses_ready(link, NETWORK_CONFIG_SOURCE_DHCP6)) {
|
||||
if (link->network->dhcp6_use_address &&
|
||||
!link_check_addresses_ready(link, NETWORK_CONFIG_SOURCE_DHCP6)) {
|
||||
Address *address;
|
||||
|
||||
SET_FOREACH(address, link->addresses)
|
||||
|
||||
Reference in New Issue
Block a user