Add support for standard proxy env vars in outputs. (#3212)
(cherry picked from commit 7b08f9d099)
This commit is contained in:
committed by
Daniel Nelson
parent
9cf19df04e
commit
eca00c10e0
@@ -80,6 +80,9 @@ func (l *Librato) Connect() error {
|
||||
"api_user and api_token are required fields for librato output")
|
||||
}
|
||||
l.client = &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
Timeout: l.Timeout.Duration,
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user