mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
network/dhcp6: skip to check existence of DHCPv6 address when UseAddress=no
Follow-up for 1536b7b2d00819615bf8eba194de7ccd20c3689f and 5f950e56211a90b21e8096ebf27c9c2b8afbd231. Fixes #29979.
This commit is contained in:
parent
f5e1781a9e
commit
fc4aa64c2d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user