]> git.proxmox.com Git - proxmox-acme.git/commitdiff
add support for proxies
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 9 Nov 2021 16:36:28 +0000 (17:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Nov 2021 17:03:56 +0000 (18:03 +0100)
by setting the proxy for the LWP::UserAgent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
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) = @_;