Skip to content

Commit 56589ce

Browse files
authored
support proxy (#6)
Signed-off-by: Wing924 <weihe924stephen@gmail.com>
1 parent 1aecd7a commit 56589ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

es/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
9999
retry := d.Get("retry").(int)
100100
waitBeforeRetry := d.Get("wait_before_retry").(int)
101101
transport := &http.Transport{
102+
Proxy: http.ProxyFromEnvironment,
102103
TLSClientConfig: &tls.Config{},
103104
}
104105
// Checks is valid URLs

0 commit comments

Comments
 (0)