resolvectl: show DefaultRoute state in per-link DNS staus info too

This commit is contained in:
Lennart Poettering
2024-09-11 21:14:28 +02:00
parent 118592cc49
commit e5868783ca
+6
View File
@@ -1875,6 +1875,12 @@ static int status_ifindex(sd_bus *bus, int ifindex, const char *name, StatusMode
if (r < 0)
return r;
r = table_add_many(table,
TABLE_FIELD, "Default Route",
TABLE_BOOLEAN, link_info.default_route);
if (r < 0)
return table_log_add_error(r);
r = table_print(table, NULL);
if (r < 0)
return table_log_print_error(r);