mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 00:40:08 +01:00
core: don't default to IPv6 temp addr while completing connection (bgo #633233)
Enabling NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR in nm_device_complete_connection() made IPv6 temp address enabled for connections created via AddAndActivateConnection() D-Bus call. But it is disabled for other connections. That is not much consistent. So, do not enable IPv6 privacy when completing connections and leave it up to users, who would like to use IPv6 Privacy Extensions, to enable it manually.
This commit is contained in:
parent
2efeac8c5f
commit
af0eb9e7ad
1 changed files with 0 additions and 8 deletions
|
|
@ -912,14 +912,6 @@ nm_device_complete_connection (NMDevice *self,
|
|||
if (success)
|
||||
success = nm_connection_verify (connection, error);
|
||||
|
||||
/* If ip6-privacy is unknown, enable it with temporary address preferred */
|
||||
if (success) {
|
||||
NMSettingIP6Config *s_ip6 = nm_connection_get_setting_ip6_config (connection);
|
||||
if (s_ip6 && nm_setting_ip6_config_get_ip6_privacy (s_ip6) == NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN)
|
||||
g_object_set (s_ip6, NM_SETTING_IP6_CONFIG_IP6_PRIVACY,
|
||||
NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR, NULL);
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue