Check that you have both the proxy_protocol on;
and listen <port> proxy_protocol;
configured in you server block in nginx.conf
For example:
server {
listen 30000 proxy_protocol;
proxy_protocol on;
proxy_pass 127.0.0.1:30001;
}
Both proxy_protocol
directives are required to work correctly.