aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-12 22:26:33 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-12 22:30:35 +0100
commit49d90dbaf471931f85f9e97bc57ddc0fde1f2fb7 (patch)
tree789e870c7ca57ffe0743f3f2e0fb6326e27fe583 /client
parentb54d248515357297d84a01cf45a42a6787c21240 (diff)
client: fail immediately when the accountd is unreachable.
Diffstat (limited to 'client')
-rwxr-xr-xclient2
1 files changed, 1 insertions, 1 deletions
diff --git a/client b/client
index c1066c1..b722d59 100755
--- a/client
+++ b/client
@@ -193,7 +193,7 @@ sub acme($;$) {
my $protected = encode_base64url(json()->encode(\%header));
my $data = $protected .'.'. $payload;
$S->printflush($data, "\r\n");
- my $sig = $S->getline();
+ my $sig = $S->getline() // die "ERROR: No response from lacme-accountd\n";
$sig =~ s/\r\n\z// or die;
undef $NONCE; # consume the nonce