[pve-devel] [PATCH pve-manager] node: use configured proxy for https when downloading files

Hannes Laimer h.laimer at proxmox.com
Fri Mar 8 13:35:35 CET 2024


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

Signed-off-by: Hannes Laimer <h.laimer at 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





More information about the pve-devel mailing list