]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: Add anonymization on a missed element for 'show sess all'
authorErwan Le Goas <elegoas@haproxy.com>
Wed, 28 Sep 2022 15:02:30 +0000 (17:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Sep 2022 08:53:14 +0000 (10:53 +0200)
Add an anonymization for an element missed in the first merge
for 'show sess all'.

No backport needed, except if anonymization mechanism is backported.

src/stream.c

index 405992f8b79504eaa467ad47a55bd488ad57f094..a3c4a1ab700d1dd9bc492d3eda52b4de3e80d537 100644 (file)
@@ -3255,7 +3255,7 @@ static int stats_dump_full_strm_to_buffer(struct stconn *sc, struct stream *strm
                case AF_INET:
                case AF_INET6:
                        chunk_appendf(&trash, " source=%s:%d\n",
-                                     pn, get_host_port(conn->src));
+                                     HA_ANON_CLI(pn), get_host_port(conn->src));
                        break;
                case AF_UNIX:
                        chunk_appendf(&trash, " source=unix:%d\n", strm_li(strm)->luid);