ipn/ipnlocal: initiate proxy transport once (#9883)

Initiates http/h2c transport for userspace proxy
backend lazily and at most once.

Updates tailscale/tailscale#9725

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
Irbe Krumina
2023-10-19 18:38:37 +01:00
committed by GitHub
parent 73bbf941f8
commit f09cb45f9d
2 changed files with 34 additions and 11 deletions

View File

@ -614,6 +614,9 @@ func Test_isGRPCContentType(t *testing.T) {
"foobar": {
contentType: "foobar",
},
"no content type": {
contentType: "",
},
}
for name, scenario := range tests {
t.Run(name, func(t *testing.T) {