]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME.pm
add support for proxies
[proxmox-acme.git] / src / PVE / ACME.pm
index 57578d7eda8a3a05df1da02cad33b0b3d125ab50..3f66182c7b4c75c121586fdadb259a0e6fbbcbbe 100644 (file)
@@ -113,6 +113,12 @@ sub new($$$) {
     return bless $self, $class;
 }
 
+sub set_proxy($$) {
+    my ($self, $proxy) = @_;
+
+    $self->{ua}->proxy('https', $proxy);
+}
+
 # RS256: PKCS#1 padding, no OAEP, SHA256
 my $configure_key = sub {
     my ($key) = @_;