Project

General

Profile

Bug #2826 » lighttpd-remote-addr.diff

davidm, 2017-10-07 16:07

View differences:

http-header-glue.c 2017-10-07 09:46:21.110977879 -0600
rc |= cb(vdata, CONST_STR_LEN("SERVER_NAME"), s, strlen(s));
}
rc |= cb(vdata, CONST_STR_LEN("REMOTE_ADDR"),
CONST_BUF_LEN(con->dst_addr_buf));
if (con->dst_addr.plain.sa_family == AF_UNIX)
rc |= cb(vdata, CONST_STR_LEN("REMOTE_ADDR"), "", 0);
else
rc |= cb(vdata, CONST_STR_LEN("REMOTE_ADDR"),
CONST_BUF_LEN(con->dst_addr_buf));
#ifdef HAVE_IPV6
port = con->dst_addr.plain.sa_family == AF_INET6
(1-1/2)