mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 09:20:32 +01:00
device: fix reapply for lldp/mdns/llmnr/dns-over-tls settings
When only one of those connection.{lldp,mdns,llmnr,dns-over-tls}
settings changes, we still need to do a full restart of the IP
configuration to reapply the changes.
Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')
(cherry picked from commit f4b128c63b)
(cherry picked from commit 6eaee2b13f)
This commit is contained in:
parent
1999fa9650
commit
7d8e43df94
1 changed files with 10 additions and 0 deletions
|
|
@ -12691,6 +12691,16 @@ check_and_reapply_connection(NMDevice *self,
|
|||
if (nm_g_hash_table_lookup(diffs, NM_SETTING_IP6_CONFIG_SETTING_NAME))
|
||||
priv->ip_data_6.do_reapply = TRUE;
|
||||
|
||||
if (nm_g_hash_table_contains_any(
|
||||
nm_g_hash_table_lookup(diffs, NM_SETTING_CONNECTION_SETTING_NAME),
|
||||
NM_SETTING_CONNECTION_LLDP,
|
||||
NM_SETTING_CONNECTION_MDNS,
|
||||
NM_SETTING_CONNECTION_LLMNR,
|
||||
NM_SETTING_CONNECTION_DNS_OVER_TLS)) {
|
||||
priv->ip_data_4.do_reapply = TRUE;
|
||||
priv->ip_data_6.do_reapply = TRUE;
|
||||
}
|
||||
|
||||
nm_device_activate_schedule_stage3_ip_config(self, FALSE);
|
||||
|
||||
_routing_rules_sync(self, NM_TERNARY_TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue