core: don't disable IPv6 when assuming connections (rh #1052157)

Don't disable IPv6 when we're about to assume a connection that may well
have IPv6 already configured on the interface, which removes all addresses
and routes from the interface and generally Breaks Stuff.
This commit is contained in:
Dan Williams 2014-01-23 15:59:01 -06:00
parent 38ef82d015
commit 6e8345d89b

View file

@ -6283,7 +6283,8 @@ nm_device_state_changed (NMDevice *device,
case NM_DEVICE_STATE_UNAVAILABLE:
if (old_state == NM_DEVICE_STATE_UNMANAGED) {
save_ip6_properties (device);
nm_platform_sysctl_set (priv->ip6_disable_ipv6_path, "1");
if (reason != NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED)
nm_platform_sysctl_set (priv->ip6_disable_ipv6_path, "1");
nm_platform_sysctl_set (priv->ip6_accept_ra_path, "0");
nm_platform_sysctl_set (priv->ip6_use_tempaddr_path, "0");
}