Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 242157 Details for
Bug 331747
www-servers/thttpd removal(?)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use the X-Forwarded-For header
real-ip.diff (text/plain), 606 bytes, created by
Gef
on 2010-08-09 21:30:19 UTC
(
hide
)
Description:
Use the X-Forwarded-For header
Filename:
MIME Type:
Creator:
Gef
Created:
2010-08-09 21:30:19 UTC
Size:
606 bytes
patch
obsolete
>--- thttpd-2.25b/libhttpd.c 2003-12-25 20:06:05.000000000 +0100 >+++ thttpd-2.25b-patched/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 ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331747
:
242153
|
242155
| 242157 |
242159
|
242161
|
242163