For the 'download_url' endpoint.
Signed-off-by: Maximiliano Sandoval <[email protected]>
---
src/PVE/API2/Storage/Status.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm
index 7bde4ecb..e1380e46 100644
--- a/src/PVE/API2/Storage/Status.pm
+++ b/src/PVE/API2/Storage/Status.pm
@@ -822,8 +822,8 @@ __PACKAGE__->register_method({
my $opts = {
hash_required => 0,
verify_certificates => $param->{'verify-certificates'} // 1,
- http_proxy => $dccfg->{http_proxy},
- https_proxy => $dccfg->{http_proxy},
+ http_proxy => PVE::Cluster::get_proxy($dccfg, 'http', 'download'),
+ https_proxy => PVE::Cluster::get_proxy($dccfg, 'https',
'download'),
};
my ($checksum, $checksum_algorithm) = $param->@{ 'checksum',
'checksum-algorithm' };
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel