mirror of
https://github.com/restic/restic.git
synced 2025-04-07 06:04:30 +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
|
dialCount := 0
|
||||||
tr := &http2.Transport{
|
tr := &http2.Transport{
|
||||||
AllowHTTP: true, // this is not really HTTP, just stdin/stdout
|
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)
|
debug.Log("new connection requested, %v %v", network, address)
|
||||||
if dialCount > 0 {
|
if dialCount > 0 {
|
||||||
// the connection to the child process is already closed
|
// the connection to the child process is already closed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user