actually is the IPV6 address.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@406860
13f79535-47bb-0310-9956-
ffa450edef68
addressStr = address.getHostAddress();\r
}\r
int family = Socket.APR_INET;\r
- if (Library.APR_HAVE_IPV6)\r
- family= Socket.APR_UNSPEC;\r
+ if (Library.APR_HAVE_IPV6 && addressStr != null) {\r
+ if (addressStr.indexOf(':') >= 0)\r
+ family= Socket.APR_UNSPEC;\r
+ }\r
long inetAddress = Address.info(addressStr, family,\r
port, 0, rootPool);\r
// Create the APR server socket\r