]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: httpclient: allow address and port change for resolving
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 3 May 2022 12:09:06 +0000 (14:09 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 4 May 2022 09:21:01 +0000 (11:21 +0200)
commit1218d19921c64650b90ed06cfb5c328dc867286c
tree7afdab1cabd2b6e47a43c32eeb68b1e3cfac957d
parent5392ff6e3c201f27307600d73af71ad26f4a0b53
MEDIUM: httpclient: allow address and port change for resolving

To allow the http-request set-dst to work for the httpclient DNS
resolving, some changes need to be done:

- The destination address need to be set in the frontend (s->csf->dst)
  instead of the backend (s->csb->dst) to be able to use
  tcp_action_req_set_dst()

- SRV_F_MAPPORTS need to be set on the proxy in order to allow the port
  change in alloc_dst_address()
src/http_client.c