Merge pull request #5307 from Martin2112/dial_tls

Replace deprecated DialTLS with DialTLSContext.
This commit is contained in:
Michael Eischer 2025-03-25 18:12:10 +01:00 committed by GitHub
commit 9eee32131a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,7 +183,7 @@ func newBackend(ctx context.Context, cfg Config, lim limiter.Limiter) (*Backend,
dialCount := 0
tr := &http2.Transport{
AllowHTTP: true, // this is not really HTTP, just stdin/stdout
DialTLS: func(network, address string, _ *tls.Config) (net.Conn, error) {
DialTLSContext: func(_ context.Context, network, address string, _ *tls.Config) (net.Conn, error) {
debug.Log("new connection requested, %v %v", network, address)
if dialCount > 0 {
// the connection to the child process is already closed