mirror of
https://github.com/restic/restic.git
synced 2025-03-29 08:12:14 +00:00
Merge pull request #5307 from Martin2112/dial_tls
Replace deprecated DialTLS with DialTLSContext.
This commit is contained in:
commit
9eee32131a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user