// Copyright (c) Tailscale Inc & contributors // SPDX-License-Identifier: BSD-3-Clause package local import "context" // DebugRejects returns the raw JSON body served by the debug-rejects // LocalAPI endpoint. Callers that want a typed response can decode the // returned bytes into [tailscale.com/net/connreject.DebugRejectsResponse]. // // The response body is returned as opaque bytes so this method does // not import tailscale.com/net/connreject; that lets builds which // don't need the typed struct (such as the tailscale CLI) keep // connreject out of their dependency graph. func (lc *Client) DebugRejects(ctx context.Context) ([]byte, error) { return lc.get200(ctx, "/localapi/v0/debug-rejects") }