浏览代码

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{