mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 16:50:44 +02:00
default-route-manager: simplify determining synced flag in _ipx_update_default_route()
No change in behavior at all. The same logic applies, but this should be simpler to understand.
This commit is contained in:
parent
6466b5da6a
commit
0b3ba99409
1 changed files with 2 additions and 3 deletions
|
|
@ -781,9 +781,8 @@ _ipx_update_default_route (const VTableIP *vtable, NMDefaultRouteManager *self,
|
|||
default_route = &rt.rx;
|
||||
|
||||
never_default = TRUE;
|
||||
synced = TRUE;
|
||||
} else
|
||||
synced = default_route && !is_assumed;
|
||||
}
|
||||
synced = !is_assumed;
|
||||
} else {
|
||||
NMConnection *connection = nm_active_connection_get_applied_connection ((NMActiveConnection *) vpn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue