Make the upstream HTTP/2 attempt configurable on the proxy transports

This commit is contained in:
Viktor Liu
2026-09-03 15:12:44 +02:00
parent 7c1253004b
commit fc2189bb49
4 changed files with 65 additions and 2 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ func (n *NetBird) createClientEntry(ctx context.Context, accountID types.Account
// not work with reverse proxied requests.
transport := &http.Transport{
DialContext: dialWithTimeout(client.DialContext),
ForceAttemptHTTP2: true,
ForceAttemptHTTP2: n.transportCfg.forceAttemptHTTP2,
MaxIdleConns: n.transportCfg.maxIdleConns,
MaxIdleConnsPerHost: n.transportCfg.maxIdleConnsPerHost,
MaxConnsPerHost: n.transportCfg.maxConnsPerHost,