diff options
Diffstat (limited to 'net/tshttpproxy')
| -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) }() |
