From 29465397ddb39a88c7534ae80b877024456fca3d Mon Sep 17 00:00:00 2001 From: ryarnyah Date: Mon, 8 May 2017 21:20:52 +0200 Subject: Add support for HTTP{S}_PROXY env variables (#162) --- matterclient/matterclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matterclient') 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 { -- cgit v1.2.3