1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/cmd/headscale
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
..
cli fix: list-routes command now respects identifier filter with JSON output 2025-12-10 06:19:17 +01:00
headscale_test.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
headscale.go use newer fork of termcolor (#1842) 2024-04-16 23:48:51 +02:00