mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-22 22:08:30 +02:00
fix(http): Add proxy transport
This commit is contained in:
@@ -63,6 +63,11 @@ func New(opts map[string]interface{}) *Cli {
|
||||
transport.TLSClientConfig.InsecureSkipVerify = insecureSkipVerify
|
||||
}
|
||||
|
||||
if os.Getenv("HTTP_PROXY") != "" {
|
||||
proxyURL, _ := url.Parse(os.Getenv("HTTP_PROXY"))
|
||||
transport.Proxy = http.ProxyURL(proxyURL)
|
||||
}
|
||||
|
||||
ua = &http.Client{
|
||||
Jar: cookieJar,
|
||||
Transport: transport,
|
||||
|
||||
Reference in New Issue
Block a user