mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
tsnet called the serve LocalAPI client and LocalBackend methods unconditionally, so it didn't build with ts_omit_serve, which every minimal feature set includes. Make those methods return feature.ErrUnavailable when serve is omitted, as ListenFunnel and ListenService now do too. Declare tsnet's minimum feature set (netstack) as featuretags.TSNetMin, add cmd/featuretags --tsnet to keep it, and add a test that type-checks tsnet with it and a few other small feature sets. Fixes #22282 Updates #22283 Change-Id: I866fa34d052bfd437b1c9d3309063999d7ebb02c Co-Authored-By: Fredrik Fornwall <[email protected]> Signed-off-by: Brad Fitzpatrick <[email protected]>