1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-30 00:00:14 +01:00

Replace deprecated DialTLS with DialTLSContext.

This commit is contained in:
Martin Smith 2025-03-24 14:05:13 +00:00
parent 9d58a27428
commit cd7f384d77

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(ctx 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