add proxy info

This commit is contained in:
letusfly85 2015-07-23 15:29:45 +09:00
parent fba4362e61
commit ea3bdcac79

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},
}
}