incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r570708 - /incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java
Date Wed, 29 Aug 2007 09:01:58 GMT
Author: ngn
Date: Wed Aug 29 02:01:57 2007
New Revision: 570708

URL: http://svn.apache.org/viewvc?rev=570708&view=rev
Log:
Fixed tests that would break on IP6 machines (FTPSERVER-106)

Modified:
    incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java

Modified: incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java?rev=570708&r1=570707&r2=570708&view=diff
==============================================================================
--- incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java (original)
+++ incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/test/TestUtil.java Wed Aug
29 02:01:57 2007
@@ -105,7 +105,11 @@
             
             while (ips.hasMoreElements()) {
                 InetAddress ip = (InetAddress) ips.nextElement();
-                hostIps.add(ip.getHostAddress());
+                if(ip instanceof java.net.Inet4Address) {
+            		hostIps.add(ip.getHostAddress());
+                } else {
+                	// IPv6 not tested
+                }
             }
         }
         



Mime
View raw message