mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-20 18:16:38 +10:00
Add support for proxy environment variables to http_response (#3302)
(cherry picked from commit a163effa6d)
This commit is contained in:
@@ -98,6 +98,7 @@ func (h *HTTPResponse) createHttpClient() (*http.Client, error) {
|
||||
}
|
||||
client := &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DisableKeepAlives: true,
|
||||
TLSClientConfig: tlsCfg,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user