1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/cmd/headscale/cli
Rogan Lynch 5d0a6ab0e9 fix: list-routes command now respects identifier filter with JSON output
Fixes #2927

In v0.27.0, the list-routes command with -i flag and -o json output
was returning all nodes instead of just the specified node.

The issue was that JSON output was happening before the identifier
filtering logic. This change moves the JSON output to after both
the identifier filter and route existence filter are applied,
ensuring the correct filtered results are returned.

This restores the v0.26.1 behavior where:
  headscale nodes list-routes -i 12 -o json
correctly returns only node 12's route information.
2025-12-10 06:19:17 +01:00
..
api_key.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
configtest.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
debug.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
dump_config.go add integration test for headscale -c 2022-06-05 23:13:58 +08:00
generate.go feat(aliases): add 'gen' alias for 'generate' command 2022-03-02 14:29:33 +10:00
health.go add health command (#2659) 2025-10-16 12:00:11 +00:00
mockoidc.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
nodes.go fix: list-routes command now respects identifier filter with JSON output 2025-12-10 06:19:17 +01:00
policy.go cli: only validate bypass-grpc set policy (#2854) 2025-11-02 09:42:59 +00:00
preauthkeys.go auth: ensure machines are allowed in when pak change (#2917) 2025-12-02 12:01:02 +01:00
pterm_style.go Fix lint 2022-02-12 19:42:55 +00:00
root_test.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
root.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
serve.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
users.go cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
utils.go modernize: run gopls modernize to bring up to 1.25 (#2920) 2025-12-01 19:40:25 +01:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00