Fix #41973 by not initializing IPV6 if address is null.
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 3 Apr 2007 10:47:06 +0000 (10:47 +0000)
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 3 Apr 2007 10:47:06 +0000 (10:47 +0000)
APR cannot listen both on IPV4 and IPV6 on some platforms
(e.g BSD and Windows).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@525133 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/AprEndpoint.java

index 0706804..8969acd 100644 (file)
@@ -596,9 +596,6 @@ public class AprEndpoint {
             }
          }
 
-        if (Library.APR_HAVE_IPV6 && (addressStr == null || addressStr.indexOf(':') >= 0)) {
-            family = Socket.APR_UNSPEC;
-        }
         long inetAddress = Address.info(addressStr, family,
                 port, 0, rootPool);
         // Create the APR server socket