Summary: | RemoteIpValve & RemoteIpFilter: HttpServletRequest.getRemoteHost() returns IP instead of hostname with enableLookups=true and x-forwarded-for header | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Yann Nicolas <yannart> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | yannart |
Priority: | P2 | ||
Version: | 7.0.52 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Yann Nicolas
2014-02-23 17:22:49 UTC
For reference - discussion thread on the users list (Feb 20) http://tomcat.markmail.org/thread/2c4jo2ryqv74zgpp Changing severity to 'enhancement'. I don't see any reason to differentiate between proxied and non-proxied clients. The only reason to differentiate between proxied and non-proxied clients is if you want to do reverse DNS lookup only for proxied clients and not for the non-proxied clients (if for example we know it is always the Load Balancer or the Proxy IP) for performance reasons. Fixed in: - 10.0.x for 10.0.0-M11 onwards - 9.0.x for 9.0.41 onwards - 8.5.x for 8.5.61 onwards - 7.0.x for 7.0.108 onwards |