Use proxy from environment in http input

This commit is contained in:
Daniel Nelson 2018-02-15 19:05:13 -08:00
parent c76ef34edc
commit dcb8417277
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,
}