[pve-devel] [PATCH storage 1/1] api: storage: status: use new dc proxy option

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Oct 21 12:03:31 CEST 2025


For the 'download_url' endpoint.

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 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





More information about the pve-devel mailing list