From 13e911cf592770740d88880e9e12d16f5d9bb8b6 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 28 Nov 2023 20:51:38 +0000 Subject: [PATCH] feat(provider): modify the proxmox api client to support connecting through an https proxy (#748) feat: modify the proxmox api client to support connecting through an https proxy to use, set the https_proxy environment variable before running terraform for example: export https_proxy=http://localhost:8080 Signed-off-by: Rui Lopes --- proxmox/api/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox/api/client.go b/proxmox/api/client.go index 11227b5d..f4e83bcf 100644 --- a/proxmox/api/client.go +++ b/proxmox/api/client.go @@ -74,6 +74,7 @@ func NewConnection(endpoint string, insecure bool) (*Connection, error) { } var transport http.RoundTripper = &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{ MinVersion: tls.VersionTLS13, InsecureSkipVerify: insecure, //nolint:gosec