mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 14:10:12 +01: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.
(cherry picked from commit 0b3ba99409)
This commit is contained in:
parent
58c9a41959
commit
9a322b4e19
1 changed files with 2 additions and 3 deletions
|
|
@ -784,9 +784,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