mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-27 13:51:00 +01:00
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:
parent
e15c6c48ef
commit
9c9ef03bf4
@ -980,7 +980,8 @@ static inline void list_mux_proto(FILE *out)
|
|||||||
struct ist proto;
|
struct ist proto;
|
||||||
char *mode, *side;
|
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) {
|
list_for_each_entry(item, &mux_proto_list.list, list) {
|
||||||
proto = item->token;
|
proto = item->token;
|
||||||
|
|
||||||
@ -1003,7 +1004,7 @@ static inline void list_mux_proto(FILE *out)
|
|||||||
side = "NONE";
|
side = "NONE";
|
||||||
|
|
||||||
fprintf(out, " %15s : mode=%-10s side=%s\n",
|
fprintf(out, " %15s : mode=%-10s side=%s\n",
|
||||||
(proto.len ? proto.ptr : "pass-through"), mode, side);
|
(proto.len ? proto.ptr : "<default>"), mode, side);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user