Use proxy from environment in http input
This commit is contained in:
parent
c76ef34edc
commit
dcb8417277
|
@ -105,6 +105,7 @@ func (h *HTTP) Gather(acc telegraf.Accumulator) error {
|
||||||
h.client = &http.Client{
|
h.client = &http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
TLSClientConfig: tlsCfg,
|
TLSClientConfig: tlsCfg,
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
},
|
},
|
||||||
Timeout: h.Timeout.Duration,
|
Timeout: h.Timeout.Duration,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue