2008-03-11 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerPolicy.c
		- (update_routing_and_dns): don't change anything if the default device
			hasn't changed; print something out when switching the default route
			and DNS



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3419 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2008-03-11 16:42:00 +00:00
parent cc2675ebb1
commit 60da632512
2 changed files with 12 additions and 1 deletions

View File

@@ -133,9 +133,12 @@ update_routing_and_dns (NMPolicy *policy)
}
}
if (!best)
if (!best || (best == policy->default_device))
goto out;
nm_info ("Policy (%s) now the default device for routing and DNS.",
nm_device_get_iface (best));
update_default_route (policy, best);
named_mgr = nm_named_manager_get ();