0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:31:41 +01:00

Fix webhooks to use proxy from environment (#8116)

This commit is contained in:
Lauris BH 2019-09-09 19:21:07 +03:00 committed by Lunny Xiao
parent 6ddd3b0b47
commit 7eacdcf39a

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 {