Skip to content

Commit 7eacdcf

Browse files
lafrikslunny
authored andcommitted
Fix webhooks to use proxy from environment (#8116)
1 parent 6ddd3b0 commit 7eacdcf

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
@@ -973,6 +973,7 @@ func InitDeliverHooks() {
973973
webhookHTTPClient = &http.Client{
974974
Transport: &http.Transport{
975975
TLSClientConfig: &tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify},
976+
Proxy: http.ProxyFromEnvironment,
976977
Dial: func(netw, addr string) (net.Conn, error) {
977978
conn, err := net.DialTimeout(netw, addr, timeout)
978979
if err != nil {

0 commit comments

Comments
 (0)