In ports r377229 the thttps REAL_IP patch was added based on something from NginX if I understand the dead link reference correctly. That cripples IPv6 ready software to IPv4 only. Here's an entirely untested change to the diff you might want to apply: { // Use real IP if available cp = &buf[16]; cp += strspn( cp, " \t" ); - inet_aton( cp, &(hc->client_addr.sa_in.sin_addr) ); +#ifdef USE_IPV6 + if (strchr(cp, '.') == NULL) + inet_pton(AF_INET6, cp, + &(hc->client_addr.sa_in6.sin6_addr) ); + else +#endif + inet_aton( cp, &(hc->client_addr.sa_in.sin_addr) );
A commit references this bug: Author: danfe Date: Tue Feb 11 07:07:14 UTC 2020 New revision: 525787 URL: https://svnweb.freebsd.org/changeset/ports/525787 Log: In r377229, the REAL_IP patch from NginX was added that puts X-Forwarded-For into Remote-Addr. That cripples IPv6 ready software to IPv4 only, let's try to fix this. PR: 230382 Submitted by: bz Changes: head/www/thttpd/Makefile head/www/thttpd/files/extra-patch-ip_real
Applied in ports r525787, thanks!