1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

Merge pull request #1106 from letusfly85/add_proxy_info2skip_verify_mode

add proxy info to http.Transport
This commit is contained in:
Brad Rydzewski 2015-07-22 23:34:40 -07:00
commit 2939e1356d

View File

@ -25,6 +25,7 @@ func NewClient(uri, token string, skipVerify bool) *github.Client {
// self-signed certificates.
if skipVerify {
t.Transport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
}