X Tutup
Skip to content

Commit 69822aa

Browse files
authored
Merge pull request containerd#6258 from wllenyj/fix-registry-panic
2 parents af93ea7 + 5f293d9 commit 69822aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cri/server/image_pull.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ func (c *criService) registryHosts(ctx context.Context, auth *runtime.AuthConfig
375375
}
376376
} else if isLocalHost(host) && u.Scheme == "http" {
377377
// Skipping TLS verification for localhost
378-
transport.TLSClientConfig.InsecureSkipVerify = true
378+
transport.TLSClientConfig = &tls.Config{
379+
InsecureSkipVerify: true,
380+
}
379381
}
380382

381383
// Make a copy of `auth`, so that different authorizers would not reference

0 commit comments

Comments
 (0)
X Tutup