소스 검색

Specify always a Proxy in all custom transports.

Fixes #535
Mariano Cano 5 년 전
부모
커밋
02a5879cfe
1개의 변경된 파일과 1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ca/client.go

+ 1 - 0
ca/client.go

@@ -57,6 +57,7 @@ func newInsecureClient() *uaClient {
 	return &uaClient{
 	return &uaClient{
 		Client: &http.Client{
 		Client: &http.Client{
 			Transport: &http.Transport{
 			Transport: &http.Transport{
+				Proxy:           http.ProxyFromEnvironment,
 				TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
 				TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
 			},
 			},
 		},
 		},