Skip to content

Commit 9a9a764

Browse files
authored
Merge pull request #67 from DanielRis/proxy
http.Transport now respects proxy settings from environment variables
2 parents 4fcbe0f + a5b2b14 commit 9a9a764

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

restapi/api_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func NewAPIClient(opt *apiClientOpt) (*api_client, error) {
9292
/* Disable TLS verification if requested */
9393
tr := &http.Transport{
9494
TLSClientConfig: &tls.Config{InsecureSkipVerify: opt.insecure},
95+
Proxy: http.ProxyFromEnvironment,
9596
}
9697

9798
var cookieJar http.CookieJar

0 commit comments

Comments
 (0)