Browse Source

Fix webhooks to use proxy from environment (#8116)

tags/v1.10.0-rc1
Lauris BH 4 years ago
parent
commit
7eacdcf39a
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      models/webhook.go

+ 1
- 0
models/webhook.go View File

@@ -973,6 +973,7 @@ func InitDeliverHooks() {
webhookHTTPClient = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify},
Proxy: http.ProxyFromEnvironment,
Dial: func(netw, addr string) (net.Conn, error) {
conn, err := net.DialTimeout(netw, addr, timeout)
if err != nil {

Loading…
Cancel
Save