You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/01/20 19:00:14 UTC
DO NOT REPLY [Bug 37859] - add a reliable "real_remote_socket" and "real_remote_port" attribute to requets
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37859
hauser@acm.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |enhancement
Status|RESOLVED |REOPENED
Resolution|INVALID |
Summary|getServerPort() not reliable|add a reliable
| |"real_remote_socket" and
| |"real_remote_port" attribute
| |to requets
Version|5.5.9 |Unknown
------- Additional Comments From hauser@acm.org 2006-01-20 19:00 -------
ok, understood - especially if there is a proxy in-between you don't want the
proxy address but the address and port of the original requestor.
However, wouldn't it be useful, to add e.g. in
org.apache.coyote.http11.Http11Processor
a request.setAttribute("javax.servlet.request.real_remote_host", socket.
getRemoteSocketAddress()); //or socket.getInetAddress() ?
and a request.setAttribute("javax.servlet.request.real_remote_port",
socket.getPort())
?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org