[Midnightbsd-cvs] mports [19912] trunk/www/thttpd/files/extra-patch-ip_real: add missing file
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Aug 20 21:51:47 EDT 2015
Revision: 19912
http://svnweb.midnightbsd.org/mports/?rev=19912
Author: laffer1
Date: 2015-08-20 21:51:47 -0400 (Thu, 20 Aug 2015)
Log Message:
-----------
add missing file
Added Paths:
-----------
trunk/www/thttpd/files/extra-patch-ip_real
Added: trunk/www/thttpd/files/extra-patch-ip_real
===================================================================
--- trunk/www/thttpd/files/extra-patch-ip_real (rev 0)
+++ trunk/www/thttpd/files/extra-patch-ip_real 2015-08-21 01:51:47 UTC (rev 19912)
@@ -0,0 +1,15 @@
+--- libhttpd.c.orig 2003-12-25 20:06:05.000000000 +0100
++++ libhttpd.c 2005-01-09 00:26:04.867255248 +0100
+@@ -2207,6 +2207,12 @@
+ if ( strcasecmp( cp, "keep-alive" ) == 0 )
+ hc->keep_alive = 1;
+ }
++ else if ( strncasecmp( buf, "X-Forwarded-For:", 16 ) == 0 )
++ { // Use real IP if available
++ cp = &buf[16];
++ cp += strspn( cp, " \t" );
++ inet_aton( cp, &(hc->client_addr.sa_in.sin_addr) );
++ }
+ #ifdef LOG_UNKNOWN_HEADERS
+ else if ( strncasecmp( buf, "Accept-Charset:", 15 ) == 0 ||
+ strncasecmp( buf, "Accept-Language:", 16 ) == 0 ||
Property changes on: trunk/www/thttpd/files/extra-patch-ip_real
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list