Changes with Apache 2.0.33-dev
+ *) Fix IPv6 name-based virtual hosts. [Jeff Trawick]
+
*) Introduce AddOutputFilterByType directive. [Justin Erenkrantz]
*) Fix DEBUG_CGI support in mod_cgi. PR 9670, 9671.
* occured in the config file, we'll copy it in that order.
*/
for (sar = name_vhost_list; sar; sar = sar->next) {
+ char inaddr_any[16] = {0}; /* big enough to handle IPv4 or IPv6 */
unsigned bucket = hash_addr(sar->host_addr);
ipaddr_chain *ic = new_ipaddr_chain(p, NULL, sar);
- if (sar->host_addr->sa.sin.sin_addr.s_addr != INADDR_ANY) {
+ if (memcmp(sar->host_addr->ipaddr_ptr, inaddr_any,
+ sar->host_addr->ipaddr_len)) { /* not IN[6]ADDR_ANY */
*iphash_table_tail[bucket] = ic;
iphash_table_tail[bucket] = &ic->next;
}