From 68670f938b80bb24589929eb091b404ee271df8b Mon Sep 17 00:00:00 2001 From: Codinget Date: Fri, 10 Apr 2026 13:56:59 +0000 Subject: [PATCH] fix(tsconnect): drop nethttpomithttp2 build tag After 1d93bdce2 ("control/controlclient: remove x/net/http2, use net/http"), the noise control client uses net/http's Transport with Protocols.SetUnencryptedHTTP2(true). The nethttpomithttp2 build tag strips the bundled HTTP/2 implementation from net/http, so at runtime the control client fails the first register request with "http: Transport does not support unencrypted HTTP/2" and the wasm never connects. Drop the tag so the bundled HTTP/2 ships in the wasm binary. --- cmd/tsconnect/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tsconnect/common.go b/cmd/tsconnect/common.go index bc9e1ed4f..6504b60ab 100644 --- a/cmd/tsconnect/common.go +++ b/cmd/tsconnect/common.go @@ -228,7 +228,7 @@ func buildWasm(dev bool) ([]byte, error) { // to fail for unclosed files. defer outputFile.Close() - args := []string{"build", "-tags", "tailscale_go,osusergo,netgo,nethttpomithttp2,omitidna,omitpemdecrypt"} + args := []string{"build", "-tags", "tailscale_go,osusergo,netgo,omitidna,omitpemdecrypt"} if !dev { if *devControl != "" { return nil, fmt.Errorf("Development control URL can only be used in dev mode.")