Skip to content

Commit 8702b92

Browse files
committed
Fix webhooks to use proxy from environment
1 parent 88e1c29 commit 8702b92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/webhook.go

+1
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ func InitDeliverHooks() {
927927
webhookHTTPClient = &http.Client{
928928
Transport: &http.Transport{
929929
TLSClientConfig: &tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify},
930+
Proxy: http.ProxyFromEnvironment,
930931
Dial: func(netw, addr string) (net.Conn, error) {
931932
conn, err := net.DialTimeout(netw, addr, timeout)
932933
if err != nil {

0 commit comments

Comments
 (0)