Merge pull request #30818 from TerryHowe/fix-dev-v3-proxy
build-test / build (push) Has been cancelled Details
CodeQL / Analyze (go) (push) Has been cancelled Details
golangci-lint / golangci-lint (push) Has been cancelled Details

fix:add proxy support when mTLS configured
This commit is contained in:
Matt Farina 2025-04-29 21:52:46 +01:00 committed by GitHub
commit aa7cdae3af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ func newRegistryClientWithTLS(
registry.ClientOptHTTPClient(&http.Client{
Transport: &http.Transport{
TLSClientConfig: tlsConf,
Proxy: http.ProxyFromEnvironment,
},
}),
registry.ClientOptBasicAuth(username, password),