vhost address when target address is v4-mapped form of
that address.
This problem was reported by Don Hughes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92607
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.30-dev
+
+ *) Fix matching of vhosts by ip address so we find IPv4
+ vhost address when target address is v4-mapped form of
+ that address. [Jeff Trawick]
+
*) More performance tweaks to the BNDM string-search algorithm
used to find "<!--#" tokens in mod_include [Brian Pane]
sa->ipaddr_len)) {
return trav;
}
+#if APR_HAVE_IPV6
+ else if (cur->sa.sin.sin_family == AF_INET &&
+ sa->sa.sin.sin_family == AF_INET6 &&
+ IN6_IS_ADDR_V4MAPPED((struct in6_addr *)sa->ipaddr_ptr) &&
+ !memcmp(&((struct in6_addr *)sa->ipaddr_ptr)->s6_addr[12],
+ cur->ipaddr_ptr,
+ 4)) {
+ return trav;
+ }
+#endif
}
}
return NULL;