소스 검색

webhooks: get proxy settings from ini file

closes #7710
bergquist 8 년 전
부모
커밋
ee190d57eb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,