BUG/MEDIUM: tcp/http: set-dst-port action broken
authorBaptiste Assmann <bedis9@gmail.com>
Tue, 3 Oct 2017 21:16:36 +0000 (23:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Oct 2017 02:36:17 +0000 (04:36 +0200)
commit46392fdd083ee36f5ee5a82e138080a25e3340f1
treeef9547d8ba6c47b2c22c7e37496cab347d2da327
parent4473a2e9aa7bc786275d1f111cf84570e4a93633
BUG/MEDIUM: tcp/http: set-dst-port action broken

A regression has been introduced in commit
00005ce5a14310d248c9f20af9ef258d245d43b1: the port being changed is the
one from 'cli_conn->addr.from' instead of 'cli_conn->addr.to'.

This patch fixes the regression.

Backport status: should be backported to HAProxy 1.7 and above.
src/proto_tcp.c