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:
parent
9d58a27428
commit
cd7f384d77
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue