diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2024-05-06 11:42:39 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2024-05-06 12:11:16 -0700 |
| commit | 50b13d5989052e746e5a8efb4f3205b135f99c5f (patch) | |
| tree | 08f51132132091f805f5b69d22b053c5f02b1661 /net/tshttpproxy/tshttpproxy.go | |
| parent | ce8969d82b5df9eff4f3ad71f6781c73e4481bf0 (diff) | |
| download | tailscale-bradfitz/debug_tstest.tar.xz tailscale-bradfitz/debug_tstest.zip | |
Change-Id: I64d34d15a040475b558444a9b52572879eb5bc54
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'net/tshttpproxy/tshttpproxy.go')
| -rw-r--r-- | net/tshttpproxy/tshttpproxy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/tshttpproxy/tshttpproxy.go b/net/tshttpproxy/tshttpproxy.go index 2ca440b57..a4f47921b 100644 --- a/net/tshttpproxy/tshttpproxy.go +++ b/net/tshttpproxy/tshttpproxy.go @@ -142,6 +142,9 @@ func ProxyFromEnvironment(req *http.Request) (ret *url.URL, _ error) { return } log.Printf("tshttpproxy: using proxy %q for URL: %q", ss, req.URL.String()) + if strings.HasPrefix(req.URL.String(), "https://controlplane.tailscale.com/key") { + panic("XXX saw controlplane.tailscale.com/key in test") + } mak.Set(&logMessagePrinted, ss, true) }() |
