mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 04:10:17 +01:00
tui: change default route metric of new routes to -1
-1 means "unset" to allow fallback to the per-device metric. That shall be the preferred default.
This commit is contained in:
parent
506fca65b3
commit
416a9616de
1 changed files with 2 additions and 2 deletions
|
|
@ -149,9 +149,9 @@ add_route (NmtWidgetList *list,
|
|||
NMIPRoute *route;
|
||||
|
||||
if (priv->family == AF_INET)
|
||||
route = nm_ip_route_new (AF_INET, "0.0.0.0", 32, NULL, 0, NULL);
|
||||
route = nm_ip_route_new (AF_INET, "0.0.0.0", 32, NULL, -1, NULL);
|
||||
else
|
||||
route = nm_ip_route_new (AF_INET6, "::", 128, NULL, 0, NULL);
|
||||
route = nm_ip_route_new (AF_INET6, "::", 128, NULL, -1, NULL);
|
||||
g_ptr_array_add (priv->routes, route);
|
||||
nmt_widget_list_set_length (list, priv->routes->len);
|
||||
g_object_notify (table, "routes");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue