Project

General

Profile

Bug #2826 » lighttpd-remote-addr-2.diff

davidm, 2017-10-07 16:26

View differences:

inet_ntop_cache.c 2017-10-07 10:24:40.856280167 -0600
#include <string.h>
const char * inet_ntop_cache_get_ip(server *srv, sock_addr *addr) {
#if HAVE_SYS_UN_H
if (addr->plain.sa_family == AF_UNIX)
return "127.0.0.1";
#endif
#ifdef HAVE_IPV6
size_t ndx = 0, i;
for (i = 0; i < INET_NTOP_CACHE_MAX; i++) {
(2-2/2)