Bug #2043
mod_proxy.c v1.4.23 compile error with ./configure --disable-ipv6
| Status: | Fixed | Start date: | 2009-07-27 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% | |
| Category: | mod_proxy | |||
| Target version: | - | |||
| Missing in 1.5.x: |
Description
#if defined(HAVE_IPV6) or similar flagging is missing in mod_proxy.c lines 757-769:
switch(hctx->state) {
case PROXY_STATE_INIT:
if (strstr(host->host->ptr,":")) {
if (-1 == (hctx->fd = socket(AF_INET6, SOCK_STREAM, 0))) {
log_error_write(srv, __FILE__, __LINE__, "ss", "socket failed: ", strerror(errno));
return HANDLER_ERROR;
}
} else {
if (-1 == (hctx->fd = socket(AF_INET, SOCK_STREAM, 0))) {
log_error_write(srv, __FILE__, __LINE__, "ss", "socket failed: ", strerror(errno));
return HANDLER_ERROR;
}
}
Associated revisions
Fix ipv6 in mod_proxy (fixes #2043)
History
#1 Updated by stbuehler almost 4 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r2605.
Also available in: Atom