mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 04:00:31 +01:00
device: skip DNS resolution for tentative IPv6 addresses
A tentative IPv6 address can still fail DAD, so don't use it to resolve the hostname via DNS. Furthermore, tentative addresses can't be used to contact the nameserver and so the resolution will fail if there is no other valid IPv6 address. Wait that the address becomes non-tentative. (cherry picked from commit4138be6a5a) (cherry picked from commit0ebd753819) (cherry picked from commit26d5ad4680) (cherry picked from commit115634d3b1)
This commit is contained in:
parent
fcf2e40f5f
commit
90ef7aeed3
1 changed files with 3 additions and 0 deletions
|
|
@ -16815,6 +16815,9 @@ get_address_for_hostname_dns_lookup(NMDevice *self, int addr_family)
|
|||
return g_inet_address_new_from_bytes(addr->address_ptr, G_SOCKET_FAMILY_IPV4);
|
||||
}
|
||||
|
||||
if (addr->n_ifa_flags & IFA_F_TENTATIVE)
|
||||
continue;
|
||||
|
||||
/* For IPv6 prefer, in order:
|
||||
* - !link-local, !deprecated
|
||||
* - !link-local, deprecated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue