Przeglądaj źródła

webhooks: get proxy settings from ini file

closes #7710
bergquist 9 lat temu
rodzic
commit
412b8998a8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      pkg/services/notifications/webhook.go

+ 1 - 0
pkg/services/notifications/webhook.go

@@ -25,6 +25,7 @@ type Webhook struct {
 }
 
 var netTransport = &http.Transport{
+	Proxy: http.ProxyFromEnvironment,
 	Dial: (&net.Dialer{
 		Timeout: 30 * time.Second,
 	}).Dial,