]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: connection: report mux modes when HTX is supported
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2018 15:52:32 +0000 (16:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 16:33:35 +0000 (17:33 +0100)
It looks like we forgot to report HTX when listing the muxes and their
respective protocols, leading to "NONE" being displayed. Let's report
"HTX" and "HTTP|HTX" since both will exist. Also fix a minor typo in
the output message.

include/proto/connection.h

index 3f48b154f5b7b50eb949938fc0441dde5ebbd409..696432280b740195580c12bd9df7b2b58cbb742f 100644 (file)
@@ -899,7 +899,7 @@ static inline void list_mux_proto(FILE *out)
        char *mode, *side;
 
        fprintf(out, "Available multiplexer protocols :\n"
-               "(protocols markes as <default> cannot be specified using 'proto' keyword)\n");
+               "(protocols marked as <default> cannot be specified using 'proto' keyword)\n");
        list_for_each_entry(item, &mux_proto_list.list, list) {
                proto = item->token;
 
@@ -909,6 +909,10 @@ static inline void list_mux_proto(FILE *out)
                        mode = "TCP";
                else if (item->mode == PROTO_MODE_HTTP)
                        mode = "HTTP";
+               else if (item->mode == PROTO_MODE_HTX)
+                       mode = "HTX";
+               else if (item->mode == (PROTO_MODE_HTTP | PROTO_MODE_HTX))
+                       mode = "HTTP|HTX";
                else
                        mode = "NONE";