Bug #2043

mod_proxy.c v1.4.23 compile error with ./configure --disable-ipv6

Added by mikahe over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:2009-07-27
Priority:NormalDue 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

Revision 2605
Added by stbuehler over 5 years ago

Fix ipv6 in mod_proxy (fixes #2043)

History

#1 Updated by stbuehler over 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2605.

Also available in: Atom