]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: use conn->dst for the peer's target address
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 12:53:15 +0000 (14:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit3ca149018d9535757283a1f89b5076122780e8d0
tree7a6607be0694454231e79ba12e8ae6d85ca245ad
parent9da9a6fdcab3f2c34eaea12bae3bb22341211d4f
MINOR: peers: use conn->dst for the peer's target address

The target address is duplicated from the peer's configured one. For
now we keep the target address as-is but we'll have to dynamically
allocate it and place it into the stream instead. Maybe a sockaddr_dup()
will help by the way.

The "show peers" part is safe as it's already called after checking
the addresses' validity.
src/peers.c