Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 331747 | Differences between
and this patch

Collapse All | Expand All

(-)thttpd-2.25b/libhttpd.c (+6 lines)
Lines 2207-2212 Link Here
2207
		if ( strcasecmp( cp, "keep-alive" ) == 0 )
2207
		if ( strcasecmp( cp, "keep-alive" ) == 0 )
2208
		    hc->keep_alive = 1;
2208
		    hc->keep_alive = 1;
2209
		}
2209
		}
2210
	    else if ( strncasecmp( buf, "X-Forwarded-For:", 16 ) == 0 )
2211
		{ // Use real IP if available 
2212
		cp = &buf[16];
2213
		cp += strspn( cp, " \t" );
2214
		inet_aton( cp, &(hc->client_addr.sa_in.sin_addr) );
2215
	        }
2210
#ifdef LOG_UNKNOWN_HEADERS
2216
#ifdef LOG_UNKNOWN_HEADERS
2211
	    else if ( strncasecmp( buf, "Accept-Charset:", 15 ) == 0 ||
2217
	    else if ( strncasecmp( buf, "Accept-Charset:", 15 ) == 0 ||
2212
		      strncasecmp( buf, "Accept-Language:", 16 ) == 0 ||
2218
		      strncasecmp( buf, "Accept-Language:", 16 ) == 0 ||

Return to bug 331747