tale / headplane

An advanced UI for juanfont/headscale
MIT License
207 stars 13 forks source link

[FR] Client Version #25

Open mitchellkellett opened 2 months ago

mitchellkellett commented 2 months ago

It would be great to see the client version and host OS details in the UI.

I know this might be a bit tricky as I couldn't see a way in the API to get this info, though it's stored in the DB (nodes.host_info).

Perhaps since it's already reading Headscale's config.yaml file, it could then query the DB to get this info whether it's sqlite or postgres.

+------------+------------+-----------------+-----------------------+
| Machine    | Addresses  | Version         | Last Seen             |
+------------+------------+-----------------+-----------------------+
| my-home-pc | 100.64.0.1 | 1.70.0          | Connected             |
|            |            | Windows 11 23H2 |                       |
+------------+------------+-----------------+-----------------------+
| my-work-pc | 100.64.0.2 | 1.70.0          | Jul 27, 10:14 AM AEST |
|            |            | Windows 11 23H2 |                       |
+------------+------------+-----------------+-----------------------+
tale commented 2 months ago

I don't want to query the database for safety reasons, however there is this PR that isn't merged in Headscale that would make this possible. https://github.com/juanfont/headscale/pull/1938