Skip to content

Commit

Permalink
Fix webhooks to use proxy from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed Sep 9, 2019
1 parent 88e1c29 commit 8702b92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,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 {
Expand Down

0 comments on commit 8702b92

Please sign in to comment.