mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-29 03:04:02 -04:00
builder/digitalocean: use HTTP proxy if in env
This commit is contained in:
@@ -43,7 +43,11 @@ type DigitalOceanClient struct {
|
||||
// Creates a new client for communicating with DO
|
||||
func (d DigitalOceanClient) New(client string, key string) *DigitalOceanClient {
|
||||
c := &DigitalOceanClient{
|
||||
client: http.DefaultClient,
|
||||
client: &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
},
|
||||
BaseURL: DIGITALOCEAN_API_URL,
|
||||
ClientID: client,
|
||||
APIKey: key,
|
||||
|
||||
Reference in New Issue
Block a user