@lukastribus Thanks for your response. We will compile a fresh binary with the options provided by you above.
Can you clarify, getsockopt(… SO_ORIGINAL_DST) is only used by send-proxy feature or any other feature in haproxy is using this often ? Basically trying to understand what are the cases where destination-ip needed to be looked into by haproxy other than send-proxy feature. As an alternative what @Martin tried by fixing using this getsockname() solved the issue, but would like understand can there be any other broken area due to this fix ?