]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream/cli: use conn_get_{src,dst} in "show sess" and "show peers" output
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 09:44:11 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit8dfffdb0602353c9eeecec13f24f65f8b189ba66
tree4bf84646560ce60caa84defdd7012ccdf52913ee
parent7bb447c3ddcc3f5cd5d117d4cd3f79f334ff6730
MINOR: stream/cli: use conn_get_{src,dst} in "show sess" and "show peers" output

The stream outputs requires to retrieve connections sources and
destinations. The previous call involving conn_get_{to,from}_addr()
was missing a status check which has now been integrated with the
new call since these places already handle connection errors there.

The same code parts were reused for "show peers" and were modified
similarly.
src/peers.c
src/stream.c