public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-manager] node: use configured proxy for https when downloading files
@ 2024-03-08 12:35 Hannes Laimer
  0 siblings, 0 replies; only message in thread
From: Hannes Laimer @ 2024-03-08 12:35 UTC (permalink / raw)
  To: pve-devel

... for both the downloading itself and the 'Query URL' part

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
 PVE/API2/Nodes.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index cc5ee65e..b35e042d 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1605,6 +1605,7 @@ __PACKAGE__->register_method({
 		sha512sum => $appliance->{sha512sum},
 		md5sum => $appliance->{md5sum},
 		http_proxy => $dccfg->{http_proxy},
+		https_proxy => $dccfg->{http_proxy},
 	    });
 	};
 
@@ -1671,6 +1672,7 @@ __PACKAGE__->register_method({
 	my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg');
 	if ($dccfg->{http_proxy}) {
 	    $ua->proxy('http', $dccfg->{http_proxy});
+	    $ua->proxy('https', $dccfg->{http_proxy});
 	}
 
 	my $verify = $param->{'verify-certificates'} // 1;
-- 
2.39.2





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-08 12:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 12:35 [pve-devel] [PATCH pve-manager] node: use configured proxy for https when downloading files Hannes Laimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal