Use proxy from environment in http input

This commit is contained in:
Daniel Nelson 2018-02-15 19:05:13 -08:00
parent 4ac78d5c6d
commit 9aabf56795
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ func (h *HTTP) Gather(acc telegraf.Accumulator) error {
h.client = &http.Client{
Transport: &http.Transport{
TLSClientConfig: tlsCfg,
Proxy: http.ProxyFromEnvironment,
},
Timeout: h.Timeout.Duration,
}