https://bz.apache.org/bugzilla/show_bug.cgi?id=64634

--- Comment #6 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to cstuhr from comment #5)
> Well apparently in order to see the affect of the RemoteIpValve in the
> Access Log, you have to set requestAttributesEnabled="true" on the
> AccessLogValve. So now I'm seeing %a change to <ip>:<port> from the
> X-Forwarded-For header.

Good.

> However the IP from request.getRemoteAddr() hasn't changed.
> 
> I'm a little surprised to see the port still part of it because of this bit
> of code of RemoteIpValve would seem to strip it:
> 
> int portIndex = Host.parse(hostHeaderValue);
> if (portIndex > -1) {
>        log.debug(sm.getString("remoteIpValve.invalidHostWithPort",
> hostHeaderValue, hostHeader));
>        hostHeaderValue = hostHeaderValue.substring(0, portIndex);
> }


That's for the HOST header, which isn't the client's IP address (with or
without port).

> I'll continue investigating what/where the root issue is.

Please post your configuration.

-- 
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