tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.07k stars 259 forks source link

Determine network status based on ip command #1827

Closed jotaen4tinypilot closed 4 months ago

jotaen4tinypilot commented 4 months ago

Related https://github.com/tiny-pilot/tinypilot/issues/1814.

This PR refactors the backend logic of how we determine the connection status of the network interfaces. It extends the response structure so that we will be able to show IP address and MAC address in a separate network dialog. The current WiFi dialog also uses this endpoint, so there needs to be a small adjustment to accommodate the new structure there.

Notes:

Review on CodeApprove