mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 13:40:10 +01:00
ifcfg-rh: ensure IPv6 addresses are cleared when none get written out
This commit is contained in:
parent
51a95abef3
commit
79db492854
1 changed files with 3 additions and 0 deletions
|
|
@ -1253,6 +1253,9 @@ write_ip6_setting (NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
svSetValue (ifcfg, "IPV6ADDR_SECONDARIES", ip_str2->str, FALSE);
|
||||
g_string_free (ip_str1, TRUE);
|
||||
g_string_free (ip_str2, TRUE);
|
||||
} else {
|
||||
svSetValue (ifcfg, "IPV6ADDR", NULL, FALSE);
|
||||
svSetValue (ifcfg, "IPV6ADDR_SECONDARIES", NULL, FALSE);
|
||||
}
|
||||
|
||||
/* Write out DNS - 'DNS' key is used both for IPv4 and IPv6 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue