Le 04/07/2019 à 15:16, Peter Hudec a écrit :
Hi,
I have maybe found some bug in haproxy, submitted as
https://github.com/haproxy/haproxy/issues/154.
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' => '217.73.20.190',
'HTTP_X_SERVER_PORT' => '22696',
'HTTP_X_SERVER_IP' => '217.73.20.190’,
Hi,
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
right values.
Regards,
--
Christopher Faulet