Merge pull request #1661 from smallstep/herman/acme-challenge-client-proxy

Add support for `HTTP_PROXY` and `HTTPS_PROXY` to ACME solver client
This commit is contained in:
Herman Slatman
2024-01-03 19:36:48 +01:00
committed by GitHub

View File

@@ -55,6 +55,7 @@ func NewClient() Client {
http: &http.Client{
Timeout: 30 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
//nolint:gosec // used on tls-alpn-01 challenge
InsecureSkipVerify: true, // lgtm[go/disabled-certificate-check]