diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2026-04-07 14:48:57 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2026-04-07 10:22:37 -0700 |
| commit | 1b5b43787c33a197977a92d108297cac9b090ddf (patch) | |
| tree | 284f905b6d8396e75fcd29a1c65c957fc09f170c /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 9a7f1439037ce4dcfccb72881afc5af06ecbfdc8 (diff) | |
| download | tailscale-1b5b43787c33a197977a92d108297cac9b090ddf.tar.xz tailscale-1b5b43787c33a197977a92d108297cac9b090ddf.zip | |
ipn/localapi, cli, clientmetric: add ipnbus feature tag; fix omit.go stub
Add a new "ipnbus" build feature tag so the watch-ipn-bus LocalAPI
endpoint can be independently controlled, rather than being gated
behind HasDebug || HasServe. Minimal/embedded builds that omit both
debug and serve were getting 404s on watch-ipn-bus, breaking
"tailscale up --authkey=..." and other CLI flows that depend on
WatchIPNBus.
In the CLI, check buildfeatures.HasIPNBus before attempting to watch
the IPN bus in "tailscale up"/"tailscale login", and exit early with
an informational message when the feature is omitted.
Also add the missing NewCounterFunc stub to clientmetric/omit.go,
which caused compilation errors when building with
ts_omit_clientmetrics and netstack enabled.
Fixes #19240
Change-Id: I2e3c69a72fc50fa02542b91b8a54859618a463d1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
