mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Fix webhooks to use proxy from environment (#8116)
This commit is contained in:
parent
6ddd3b0b47
commit
7eacdcf39a
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue