The problem with reading the correct port seems to be with nginx at
src/core/ngx_proxy_protocol.c somewhere between lines 70 and 120 , It just
reads the PROXY line, takes the first IP as the client IP and then skips to
ports and takes the first port. Instead it should skip the first one and
take the last according to Proxy Protocol specs.

See example mentioned before: PROXY TCP4 192.168.0.1 192.168.0.11 56324 443
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to