如何配置haproxy,让客户端ip透传?

配置HAProxy 中 send-proxy 和 在TiDB配置中 --proxy-protocol-networks 配置为代理服IP,透传IP才会生效。