Explorar el Código

webhooks: get proxy settings from ini file

closes #7710
bergquist hace 8 años
padre
commit
412b8998a8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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,