Project

General

Profile

Bug #2043

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

Added by mikahe about 7 years ago. Updated about 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_proxy
Target version:
-
Start date:
2009-07-27
Due date:
% Done:

100%

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 (diff)
Added by stbuehler about 7 years ago

Fix ipv6 in mod_proxy (fixes #2043)

Revision a1862cc8 (diff)
Added by stbuehler about 7 years ago

Fix ipv6 in mod_proxy (fixes #2043)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2605 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by stbuehler about 7 years ago

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

Applied in changeset r2605.

Also available in: Atom