BUG/MINOR: cli: shows correct mode in "show sess"
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 8 Mar 2022 11:05:31 +0000 (12:05 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Mar 2022 09:45:35 +0000 (10:45 +0100)
commit96e6c4bc1c44c1c111bfd32a2c940ef25ca07b2f
treeca5e2ba33caebb330efd40a8b182639475f2a5e3
parente92b1b677024e348f659842389cafa95d35240af
BUG/MINOR: cli: shows correct mode in "show sess"

The "show sess" cli command only handles "http" or "tcp" as a fallback
mode, replace this by a call to proxy_mode_str() to show all the modes.

Could be backported in every maintained versions.

(cherry picked from commit b0dfd099c56b8f8fd46686120a6cf1598bd5e470)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/stream.c