diff options
author | ryarnyah <ryarnyah@gmail.com> | 2017-05-08 21:20:52 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-05-08 21:20:52 +0200 |
commit | 29465397ddb39a88c7534ae80b877024456fca3d (patch) | |
tree | 17d86561a75f04e8ed50c14259a817d6b57b6fa6 /matterclient/matterclient.go | |
parent | d300bb173535f23980245867a7df2fc1bd16328f (diff) | |
download | matterbridge-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.go | 2 |
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 { |