Use proxy from environment in http input
This commit is contained in:
parent
4ac78d5c6d
commit
9aabf56795
|
@ -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