How to expose x-forwarded-for host ip instead of container ip

Hi everybody,

is there a way to make haproxy always expose the host ip in x-forwarded-for header instead of container internal ip when connecting to other containers in the same environment?

It works fine most of the times, but when the loadbalancer container and the source container are on the same host, haproxy puts the internal container ip instead of the host one.

Thank you in advance
Ross