[pve-devel] [PATCH manager 1/3] api: subscription: use new proxy dc option
Maximiliano Sandoval
m.sandoval at proxmox.com
Tue Oct 21 12:03:28 CEST 2025
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
PVE/API2/Subscription.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/API2/Subscription.pm b/PVE/API2/Subscription.pm
index 59e7fe74..a810f334 100644
--- a/PVE/API2/Subscription.pm
+++ b/PVE/API2/Subscription.pm
@@ -277,7 +277,7 @@ __PACKAGE__->register_method({
check_key($key, $req_sockets);
my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg');
- my $proxy = $dccfg->{http_proxy};
+ my $proxy = PVE::Cluster::get_proxy($dccfg, 'https', 'subscription');
$info = Proxmox::RS::Subscription::check_subscription(
$key, $server_id, "", "Proxmox VE", $proxy,
@@ -331,7 +331,7 @@ __PACKAGE__->register_method({
write_etc_subscription($new_info);
my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg');
- my $proxy = $dccfg->{http_proxy};
+ my $proxy = PVE::Cluster::get_proxy($dccfg, 'https', 'subscription');
my $checked_info = Proxmox::RS::Subscription::check_subscription(
$key, $server_id, "", "Proxmox VE", $proxy,
--
2.47.3
More information about the pve-devel
mailing list