]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux: Improve the message with the list of existing mux protocols
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Aug 2018 08:25:57 +0000 (10:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Aug 2018 08:41:11 +0000 (10:41 +0200)
Because there can be several default multiplexers (without name), they are now
reported with the name "<default>". And a message warns they cannot be
referenced with the "proto" keyword on a bind line or a server line.

include/proto/connection.h

index 27edff947a763b91358d65bf4ca88e747efcc25c..fe4c0705feb9012f0a1bd8fe8db7df4197129549 100644 (file)
@@ -980,7 +980,8 @@ static inline void list_mux_proto(FILE *out)
        struct ist proto;
        char *mode, *side;
 
-       fprintf(out, "Available multiplexer protocols :\n");
+       fprintf(out, "Available multiplexer protocols :\n"
+               "(protocols markes as <default> cannot be specified using 'proto' keyword)\n");
        list_for_each_entry(item, &mux_proto_list.list, list) {
                proto = item->token;
 
@@ -1003,7 +1004,7 @@ static inline void list_mux_proto(FILE *out)
                        side = "NONE";
 
                fprintf(out, " %15s : mode=%-10s side=%s\n",
-                       (proto.len ? proto.ptr : "pass-through"), mode, side);
+                       (proto.len ? proto.ptr : "<default>"), mode, side);
        }
 }