projects
/
proxmox-acme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec9149
)
add support for proxies
author
Stoiko Ivanov
<s.ivanov@proxmox.com>
Tue, 9 Nov 2021 16:36:28 +0000
(17:36 +0100)
committer
Thomas 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
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/ACME.pm
b/src/PVE/ACME.pm
index 57578d7eda8a3a05df1da02cad33b0b3d125ab50..3f66182c7b4c75c121586fdadb259a0e6fbbcbbe 100644
(file)
--- 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) = @_;