MINOR: mux: Improve the message with the list of existing mux protocols

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.
This commit is contained in:
Christopher Faulet 2018-08-08 10:25:57 +02:00
parent e15c6c48ef
commit 9c9ef03bf4
1 changed files with 3 additions and 2 deletions

View 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);
}
}