aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thttpd/forwarded-for.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-22 08:41:09 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-22 08:41:09 +0000
commitf90c15a50a5cefedf36bd7c043d5069b3652c092 (patch)
treed497bdbbaffcb5c6187e79913f7a95808676ada8 /testing/thttpd/forwarded-for.patch
parent53a4f790089c6699afc42a41e31ea685f1699b18 (diff)
downloadaports-f90c15a50a5cefedf36bd7c043d5069b3652c092.tar.bz2
aports-f90c15a50a5cefedf36bd7c043d5069b3652c092.tar.xz
community/thttpd: moved from testing
Diffstat (limited to 'testing/thttpd/forwarded-for.patch')
-rw-r--r--testing/thttpd/forwarded-for.patch16
1 files changed, 0 insertions, 16 deletions
diff --git a/testing/thttpd/forwarded-for.patch b/testing/thttpd/forwarded-for.patch
deleted file mode 100644
index 348eb00cf2..0000000000
--- a/testing/thttpd/forwarded-for.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -Naur old/libhttpd.c new/libhttpd.c
---- old/libhttpd.c 2005-06-30 03:50:39.000000000 +1000
-+++ new/libhttpd.c 2012-10-24 12:12:17.144560917 +1100
-@@ -2207,6 +2207,12 @@
- if ( strcasecmp( cp, "keep-alive" ) == 0 )
- hc->keep_alive = 1;
- }
-+ else if ( strncasecmp( buf, "X-Forwarded-For:", 16 ) == 0 )
-+ {
-+ 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 ||