gurucomputing / headscale-ui

A web frontend for the headscale Tailscale-compatible coordination server
BSD 3-Clause "New" or "Revised" License
1.79k stars 128 forks source link

Can not get device router #167

Closed plusls closed 1 month ago

plusls commented 1 month ago

Supporting Details Provide the following:

Describe the bug

Default, headscaleAPIMachineOrNode is null, so it use machine as the router query path.

https://github.com/gurucomputing/headscale-ui/blob/64323e49c52a034d57867383549a51c65dfeddd6/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte#L9

https://github.com/gurucomputing/headscale-ui/blob/64323e49c52a034d57867383549a51c65dfeddd6/src/lib/common/apiFunctions.svelte#L159

MadWalnut commented 1 month ago

machine needs to be updated to node, see #120

routerino commented 1 month ago

The machine or node check was removed, but clearly some references to machine got missed. Getting taken care of now