commit | de85de69ec573d0756720b6314693f7f65cc4a27 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Apr 19 09:07:47 2023 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 19 09:12:43 2023 +0200 |
tree | 785f7f9263549f2fac5c6d996403aa22fe9ba472 | |
parent | a2a095536a3040b6f9bbc749412299a8539491bd [diff] [blame] |
MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set Instead of dumping "alpn " better show "no-alpn" as configured.
diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index 5296118..741e6ae 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c
@@ -827,7 +827,10 @@ 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;