Le 04/07/2019 à 15:16, Peter Hudec a écrit :
I have maybe found some bug in haproxy, submitted as
The variables dst, dst_port are identical with the src, src_port.
Is there any other way how to get these /in this case dst/ values ??
What do I need is ..
http-request set-header X-Server-IP %[dst]
http-request set-header X-Server-Port %[dst_port]
http-request set-header X-Client-IP %[src]
http-request set-header X-Client-Port %[src_port]
result is ;(
'HTTP_X_CLIENT_PORT' => '22696',
'HTTP_X_CLIENT_IP' => '188.8.131.52',
'HTTP_X_SERVER_PORT' => '22696',
'HTTP_X_SERVER_IP' => '184.108.40.206’,
For the record, I closed the issue on Github. I guess it is a problem with the
server. I've made some tests, and the HTTP request's headers are set to the