mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-02 02:58:28 +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
|
transport.TLSClientConfig.InsecureSkipVerify = insecureSkipVerify
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.Getenv("HTTP_PROXY") != "" {
|
||||||
|
proxyURL, _ := url.Parse(os.Getenv("HTTP_PROXY"))
|
||||||
|
transport.Proxy = http.ProxyURL(proxyURL)
|
||||||
|
}
|
||||||
|
|
||||||
ua = &http.Client{
|
ua = &http.Client{
|
||||||
Jar: cookieJar,
|
Jar: cookieJar,
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
|
|||||||
Reference in New Issue
Block a user