Browse Source

Proxy support added, fixes #7922

Well, i'm really want to see it working in 4.3.0
berghauz 8 years ago
parent
commit
c713bd9a9a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/components/imguploader/webdavuploader.go

+ 1 - 0
pkg/components/imguploader/webdavuploader.go

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