Corrected in CVS.
hgomez 01/07/26 04:14:11
Modified: src/share/org/apache/tomcat/modules/server
Http10Interceptor.java
Log:
Correct getRemoteAddr() bug in native http 1.0 connector
Bug report from Clayton Vernon
Revision Changes Path
1.18 +2 -0
jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.
java
Index: Http10Interceptor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10In
terceptor.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- Http10Interceptor.java 2001/06/28 07:29:08 1.17
+++ Http10Interceptor.java 2001/07/26 11:14:11 1.18
@@ -242,6 +242,8 @@
return;
}
+
this.remoteAddr().setString(socket.getInetAddress().getHostAddress());
+
// for 0.9, we don't have headers!
if (! protoMB.equals("")) {
// all HTTP versions with protocol also have headers