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>
Fri, 26 Feb 2021 12:32:14 +0000 (13:32 +0100)
commitcccded98c7b3f2281fe4481895b1392e78cc5df0
treedc595e740f247fc90740a03dea6f9167cd33acd1
parent76390dac0654f6c539f4c20bb7c2ad3a6e74eea9
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.
src/http_ana.c