MINOR: ssl_crtlist: dump "no-alpn" on "show crtlist" when "no-alpn" was set

Instead of dumping "alpn " better show "no-alpn" as configured.
This commit is contained in:
Willy Tarreau 2023-04-19 09:07:47 +02:00
parent a2a095536a
commit de85de69ec

View File

@ -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, " ");
if (len)
chunk_appendf(buf, "alpn ");
else
chunk_appendf(buf, "no-alpn");
while (len) {
unsigned short size;