mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
Merge pull request #1106 from letusfly85/add_proxy_info2skip_verify_mode
add proxy info to http.Transport
This commit is contained in:
commit
2939e1356d
1 changed files with 1 additions and 0 deletions
|
@ -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},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue