Add support for standard proxy env vars in outputs. (#3212)

(cherry picked from commit 7b08f9d099)
This commit is contained in:
Daniel Nelson
2017-09-08 15:35:20 -07:00
committed by Daniel Nelson
parent 9cf19df04e
commit eca00c10e0
4 changed files with 11 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ func (a *Amon) Connect() error {
return fmt.Errorf("serverkey and amon_instance are required fields for amon output")
}
a.client = &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
Timeout: a.Timeout.Duration,
}
return nil