Signed-off-by: Maximiliano Sandoval <[email protected]>
---
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
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel