Add support for HTTP_PROXY and HTTPS_PROXY to ACME solver client

This commit is contained in:
Herman Slatman
2024-01-03 15:09:24 +01:00
parent b75773e193
commit c59d293d26

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]