tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schu...@apache.org
Subject svn commit: r1178976 - /tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java
Date Tue, 04 Oct 2011 21:59:21 GMT
Author: schultz
Date: Tue Oct  4 21:59:20 2011
New Revision: 1178976

URL: http://svn.apache.org/viewvc?rev=1178976&view=rev
Log:
Fixed bug #51956: RemoteAddrFilter uses remote host (not address) in doFilterEvent

Modified:
    tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java

Modified: tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java?rev=1178976&r1=1178975&r2=1178976&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java Tue Oct  4 21:59:20
2011
@@ -89,7 +89,7 @@ public final class RemoteAddrFilter
     @Override
     public void doFilterEvent(CometEvent event, CometFilterChain chain)
             throws IOException, ServletException {
-        processCometEvent(event.getHttpServletRequest().getRemoteHost(),
+        processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
                 event, chain);        
     }
 
@@ -97,5 +97,4 @@ public final class RemoteAddrFilter
     protected Log getLogger() {
         return log;
     }
-    
 }



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


Mime
View raw message