add support for proxies

by setting the proxy for the LWP::UserAgent

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2021-11-09 17:36:28 +01:00 committed by Thomas Lamprecht
parent bec914932c
commit 621046b21d

View 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) = @_;