From 621046b21d8e208b131e558ad861dc8b0d95ecec Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Tue, 9 Nov 2021 17:36:28 +0100 Subject: [PATCH] add support for proxies by setting the proxy for the LWP::UserAgent Signed-off-by: Stoiko Ivanov --- src/PVE/ACME.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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) = @_;