respect proxy settings for b2d downloads

Signed-off-by: Fabian Ruff <fabian@progra.de>
This commit is contained in:
Fabian Ruff 2015-02-26 13:54:09 +01:00
parent 344c7d771a
commit ac51f9abbd
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ func defaultTimeout(network, addr string) (net.Conn, error) {
func getClient() *http.Client {
transport := http.Transport{
Dial: defaultTimeout,
Proxy: http.ProxyFromEnvironment,
Dial: defaultTimeout,
}
client := http.Client{