Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 278b481b46b32abcca8606cf96f02f3788614cd9 Author: ryarnyah <ryarnyah@gmail.com> Date: Mon May 08 21:20:52 2017 +0000 Add support for HTTP{S}_PROXY env variables (#162) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index e579537..19c8bcd 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -1067 +1067 @@ 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 {