mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 13:47:58 +02:00
rdisc: clear domain list when updating from RA
Appears to be a simple oversight. If the IPv6 router changes the domain list, old domains could stick around.
This commit is contained in:
parent
5e3c55eb28
commit
5f1a62877c
1 changed files with 3 additions and 0 deletions
|
|
@ -3319,6 +3319,9 @@ rdisc_config_changed (NMRDisc *rdisc, NMRDiscConfigMap changed, NMDevice *device
|
|||
}
|
||||
|
||||
if (changed & NM_RDISC_CONFIG_DNS_DOMAINS) {
|
||||
/* Rebuild domain list from router discovery cache. */
|
||||
nm_ip6_config_reset_domains (priv->ac_ip6_config);
|
||||
|
||||
for (i = 0; i < rdisc->dns_domains->len; i++) {
|
||||
NMRDiscDNSDomain *discovered_domain = &g_array_index (rdisc->dns_domains, NMRDiscDNSDomain, i);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue