瀏覽代碼

fix proxy

Victor Vieux 12 年之前
父節點
當前提交
06b585ce8a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      registry/registry.go

+ 1 - 0
registry/registry.go

@@ -479,6 +479,7 @@ func NewRegistry(root string) *Registry {
 
 	httpTransport := &http.Transport{
 		DisableKeepAlives: true,
+		Proxy: http.ProxyFromEnvironment,
 	}
 
 	r := &Registry{