summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
authorryarnyah <ryarnyah@gmail.com>2017-05-08 21:20:52 +0200
committerWim <wim@42.be>2017-05-08 21:20:52 +0200
commit29465397ddb39a88c7534ae80b877024456fca3d (patch)
tree17d86561a75f04e8ed50c14259a817d6b57b6fa6 /matterclient/matterclient.go
parentd300bb173535f23980245867a7df2fc1bd16328f (diff)
downloadmatterbridge-msglm-29465397ddb39a88c7534ae80b877024456fca3d.tar.gz
matterbridge-msglm-29465397ddb39a88c7534ae80b877024456fca3d.tar.bz2
matterbridge-msglm-29465397ddb39a88c7534ae80b877024456fca3d.zip
Add support for HTTP{S}_PROXY env variables (#162)
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index e579537b..19c8bcd3 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -106,7 +106,7 @@ func (m *MMClient) Login() error {
}
// login to mattermost
m.Client = model.NewClient(uriScheme + m.Credentials.Server)
- m.Client.HttpClient.Transport = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: m.SkipTLSVerify}}
+ m.Client.HttpClient.Transport = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: m.SkipTLSVerify}, Proxy: http.ProxyFromEnvironment}
m.Client.HttpClient.Timeout = time.Second * 10
for {