summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorHarry Harpham <harry@tailscale.com>2026-01-13 14:26:20 -0700
committerHarry Harpham <harry@tailscale.com>2026-01-21 14:50:26 -0700
commit56442e220ec8f0179019556cc1226c6d597175ae (patch)
treee959ba90a6ca8e0cb4e6c131a765d8e6fb2e7cac /control/controlhttp/controlhttpserver/controlhttpserver.go
parent919b2ac2c6070ffb6a494d75c818b864dcfbe8e1 (diff)
downloadtailscale-56442e220ec8f0179019556cc1226c6d597175ae.tar.xz
tailscale-56442e220ec8f0179019556cc1226c6d597175ae.zip
ipn/ipnlocal: allow retrieval of serve config ETags from local API
This change adds API to ipn.LocalBackend to retrieve the ETag when querying for the current serve config. This allows consumers of ipn.LocalBackend.SetServeConfig to utilize the concurrency control offered by ETags. Previous to this change, utilizing serve config ETags required copying the local backend's internal ETag calcuation. The local API server was previously copying the local backend's ETag calculation as described above. With this change, the local API server now uses the new ETag retrieval function instead. Serve config ETags are therefore now opaque to clients, in line with best practices. Fixes tailscale/corp#35857 Signed-off-by: Harry Harpham <harry@tailscale.com> (cherry picked from commit 1b88e93ff5e6f984f52bbdbedad45db7287619fd)
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions