From de85de69ec573d0756720b6314693f7f65cc4a27 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 19 Apr 2023 09:07:47 +0200 Subject: [PATCH] MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set Instead of dumping "alpn " better show "no-alpn" as configured. --- src/ssl_crtlist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index 5296118066..741e6aed6e 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -827,7 +827,10 @@ static void dump_crtlist_sslconf(struct buffer *buf, const struct ssl_bind_conf int comma = 0; if (space) chunk_appendf(buf, " "); - chunk_appendf(buf, "alpn "); + if (len) + chunk_appendf(buf, "alpn "); + else + chunk_appendf(buf, "no-alpn"); while (len) { unsigned short size; -- 2.47.2