diff options
| author | Alex Chan <alexc@tailscale.com> | 2025-11-17 17:12:05 +0000 |
|---|---|---|
| committer | Alex Chan <alex@alexwlchan.net> | 2025-11-18 18:34:09 +0000 |
| commit | d0daa5a398ec4a17499938c3c25ce1cf5058d1b9 (patch) | |
| tree | 81f9007133aebf1e9c8a81b7b043ce4329a9455a /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 04a9d25a545824d499af9bcff967a235566c8389 (diff) | |
| download | tailscale-d0daa5a398ec4a17499938c3c25ce1cf5058d1b9.tar.xz tailscale-d0daa5a398ec4a17499938c3c25ce1cf5058d1b9.zip | |
tka: marshal AUMHash totext even if Tailnet Lock is omitted
We use `tka.AUMHash` in `netmap.NetworkMap`, and we serialise it as JSON
in the `/debug/netmap` C2N endpoint. If the binary omits Tailnet Lock support,
the debug endpoint returns an error because it's unable to marshal the
AUMHash.
This patch adds a sentinel value so this marshalling works, and we can
use the debug endpoint.
Updates https://github.com/tailscale/tailscale/issues/17115
Signed-off-by: Alex Chan <alexc@tailscale.com>
Change-Id: I51ec1491a74e9b9f49d1766abd89681049e09ce4
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
