https://issues.apache.org/bugzilla/show_bug.cgi?id=56661

--- Comment #5 from Mark Thomas <ma...@apache.org> ---
All AJP connectors behave this way and have done since getLocalAddr() was added
in Servlet 2.4.

The problem is that the AJP protocol passes the remoteAddr, remoteHost,
localName and localPort but *NOT* the localAddr.

localAddr should be the IP address the client used to contact the server and
this simply is not available - hence why the host name was used.

Possible solutions include modifying the AJP protocol but this is non-trivial.

A simple work-around would be to have the reverse proxy add a custom header
with the localAddr information and then have a Valve / Filter read that header
value and then present it to the application.

I'm leaning towards resolving this as WONTFIX.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to