]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: display the type of challenge in ACME_INITIAL_DELAY
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 08:09:03 +0000 (10:09 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 08:16:11 +0000 (10:16 +0200)
The ACME_INITIAL_DELAY state displays a message about 'dns-01', but this
state is also used for 'dns-persist-01'.

This patch displays the challenge that was configured instead of dns-01

src/acme.c

index cd8f681ff701f3080f23526f0c45175cde31bd7d..0756cd2493fb8b7d5e3f6a2cefacc0e24bc0b974 100644 (file)
@@ -2525,8 +2525,8 @@ re:
                                st = ACME_CHALLENGE;
                        ctx->http_state = ACME_HTTP_REQ;
                        ctx->state = st;
-                       send_log(NULL, LOG_NOTICE, "acme: %s: dns-01: waiting %ds\n",
-                                                   ctx->store->path, ctx->cfg->dns_delay);
+                       send_log(NULL, LOG_NOTICE, "acme: %s: %s: waiting %ds\n",
+                                                   ctx->store->path, ctx->cfg->challenge, ctx->cfg->dns_delay);
 
                        task->expire = tick_add(now_ms, ctx->cfg->dns_delay * 1000);
                        return task;