Explorar el Código

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

Add support for `HTTP_PROXY` and `HTTPS_PROXY` to ACME solver client
Herman Slatman hace 2 años
padre
commit
581db00a00
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      acme/client.go

+ 1 - 0
acme/client.go

@@ -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]