]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: backend: switch to conn_get_{src,dst}() for port and address mapping
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 09:27:38 +0000 (11:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit3cc01d84b30ee216cb8ab5eec504cb26641f314f
treef274a17752b0e9da0c869d2707bb8620a79381f3
parenta0a4b09d0881e6793295f5c10c92ae4592378efd
MINOR: backend: switch to conn_get_{src,dst}() for port and address mapping

The backend connect code uses conn_get_{from,to}_addr to forward addresses
in transparent mode and to map server ports, without really checking if the
operation succeeds. In preparation of future changes, let's switch to
conn_get_{src,dst}() and integrate status check for possible failures.
include/proto/stream_interface.h
src/backend.c