mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 10:41:19 -08:00
The ts2021 protocol speaks HTTP/2 inside the Noise stream. With GODEBUG=http2client=0 (or the nethttpomithttp2 build tag), net/http can't, and http.DefaultTransport also never gets a TLSClientConfig, which made controlhttp crash tailscaled with a nil pointer dereference. Return a clear user-visible error from ts2021.NewClient instead, and make netutil.NewDefaultTransport always return a non-nil TLSClientConfig. Fixes #22578 Change-Id: I119c6ebbd6f1bbb5c693fb44a577862b98e688f3 Signed-off-by: Brad Fitzpatrick <[email protected]>