diff options
Diffstat (limited to 'ipn/ipnserver/server.go')
| -rw-r--r-- | ipn/ipnserver/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipn/ipnserver/server.go b/ipn/ipnserver/server.go index 47b088100..db255c6e0 100644 --- a/ipn/ipnserver/server.go +++ b/ipn/ipnserver/server.go @@ -1049,6 +1049,10 @@ func (s *Server) localhostHandler(ci connIdentity) http.Handler { lah.ServeHTTP(w, r) return } + if strings.HasPrefix(r.URL.Path, "/api/") { + s.b.ProxyAPIRequestOverNoise(w, r) + return + } if ci.NotWindows { io.WriteString(w, "<html><title>Tailscale</title><body><h1>Tailscale</h1>This is the local Tailscale daemon.") return |
