BUG/MINOR: http-ana: Only consider dst address to process originalto option
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Feb 2021 11:45:56 +0000 (12:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Mar 2021 16:59:00 +0000 (17:59 +0100)
commitdf82f0b02a556f15cb4550851699828f5b11a6bf
tree94d750fdbc4c6a5ea3f4c6ab10ef5478db3597be
parent4099f99004dbbc8a5c116f1024623bac0d723be4
BUG/MINOR: http-ana: Only consider dst address to process originalto option

When an except parameter is used for originalto option, only the destination
address must be evaluated. Especially, the address family of the destination
must be tested and not the source one.

This patch must be backported to all stable versions. However be careful,
depending the versions the code may be slightly different.

(cherry picked from commit cccded98c7b3f2281fe4481895b1392e78cc5df0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c