From 8f89d4fb5500e1234d39d479108c8b0deda49139 Mon Sep 17 00:00:00 2001 From: Michael Ben-Ami Date: Tue, 21 Jul 2026 09:52:28 -0400 Subject: [PATCH] feature/conn25: rename LocalAPI endpoint to conn25/state Previously it was conn25-state. The new name prepares for the ability to add new endpoints behind the conn25/ prefix, and prepares for parity for an upcoming c2n endpoint with the same name. Updates tailscale/corp#40125 Signed-off-by: Michael Ben-Ami --- feature/conn25/api.go | 4 ++-- feature/conn25/conn25.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/feature/conn25/api.go b/feature/conn25/api.go index e10aec5d2..34a6038ac 100644 --- a/feature/conn25/api.go +++ b/feature/conn25/api.go @@ -22,7 +22,7 @@ import ( "tailscale.com/util/testenv" ) -// serveLocalAPIStateGet serves the localapi endpoint /conn25-state. +// serveLocalAPIStateGet serves the localapi endpoint /conn25/state. // See also [*Conn25.GetActiveState]. func serveLocalAPIStateGet(h *localapi.Handler, w http.ResponseWriter, r *http.Request) { // TODO(tailscale/corp#39033): Remove for alpha release. @@ -31,7 +31,7 @@ func serveLocalAPIStateGet(h *localapi.Handler, w http.ResponseWriter, r *http.R return } if !h.PermitRead { - http.Error(w, "conn25-state access denied", http.StatusForbidden) + http.Error(w, "conn25/state access denied", http.StatusForbidden) return } if r.Method != httpm.GET { diff --git a/feature/conn25/conn25.go b/feature/conn25/conn25.go index cb5925e32..8437a76cc 100644 --- a/feature/conn25/conn25.go +++ b/feature/conn25/conn25.go @@ -85,7 +85,7 @@ func init() { }) ipnlocal.RegisterPeerAPIHandler("/v0/connector/transit-ip", handleConnectorTransitIP) ipnlocal.HookReplyToDNSQueries.Add(handleHookReplyToDNSQueries) - localapi.Register("conn25-state", serveLocalAPIStateGet) + localapi.Register("conn25/state", serveLocalAPIStateGet) } func handleConnectorTransitIP(h ipnlocal.PeerAPIHandler, w http.ResponseWriter, r *http.Request) {