From: Stoiko Ivanov Date: Tue, 9 Nov 2021 16:36:28 +0000 (+0100) Subject: add support for proxies X-Git-Url: https://git.proxmox.com/?p=proxmox-acme.git;a=commitdiff_plain;h=621046b21d8e208b131e558ad861dc8b0d95ecec add support for proxies by setting the proxy for the LWP::UserAgent Signed-off-by: Stoiko Ivanov --- diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm index 57578d7..3f66182 100644 --- a/src/PVE/ACME.pm +++ b/src/PVE/ACME.pm @@ -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) = @_;