connectivity: also expose fake connectivity states to dispatcher

The fake states still encode whether the device have a default-route.
So, they are not entirely useless. Also, don't add special handling
of "#if !WITH_CONCHECK" where we don't need it.

There is no fundamental difference between compiling without connectivity
check and disabling connectivity checks.
This commit is contained in:
Thomas Haller 2018-04-11 11:37:04 +02:00
parent 8c805c943c
commit 835a5f7248

View file

@ -631,9 +631,7 @@ _dispatcher_call (NMDispatcherAction action,
if (!device_dhcp6_props)
device_dhcp6_props = g_variant_ref_sink (g_variant_new_array (G_VARIANT_TYPE ("{sv}"), NULL, 0));
#if WITH_CONCHECK
connectivity_state_string = nm_connectivity_state_to_string (connectivity_state);
#endif
/* Send the action to the dispatcher */
if (blocking) {