mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 15:00:25 +01:00
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:
parent
8c805c943c
commit
835a5f7248
1 changed files with 0 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue