webhooks: get proxy settings from ini file

closes #7710
This commit is contained in:
bergquist
2017-03-02 13:57:28 +01:00
parent 473513aa2f
commit 412b8998a8

View File

@@ -25,6 +25,7 @@ type Webhook struct {
} }
var netTransport = &http.Transport{ var netTransport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{ Dial: (&net.Dialer{
Timeout: 30 * time.Second, Timeout: 30 * time.Second,
}).Dial, }).Dial,