From 76950da64d101bf52f209922fbd0d5bebaabd02a Mon Sep 17 00:00:00 2001 From: Chris Fordham Date: Tue, 11 Jul 2017 19:35:45 +1000 Subject: [PATCH] use of ProxyFromEnvironment for bitbucketserver Similar to https://github.com/drone/drone/pull/1724. Currently it looks like drone only supports this with github and gitlab. This PR will add the proxy support for bitbucketserver. --- remote/bitbucketserver/bitbucketserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/remote/bitbucketserver/bitbucketserver.go b/remote/bitbucketserver/bitbucketserver.go index 6e44baa3f..b8c7e2324 100644 --- a/remote/bitbucketserver/bitbucketserver.go +++ b/remote/bitbucketserver/bitbucketserver.go @@ -233,6 +233,7 @@ func CreateConsumer(URL string, ConsumerKey string, PrivateKey *rsa.PrivateKey) consumer.HttpClient = &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, }, } return consumer