Skip to content

Commit

Permalink
Add fix to ensure that X-Client-IP header is dropped when is not a tr…
Browse files Browse the repository at this point in the history
…usted header.
  • Loading branch information
GrahamDumpleton committed Jul 18, 2022
1 parent f4e5138 commit af3c0c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/mod_wsgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -14055,6 +14055,7 @@ static void wsgi_process_proxy_headers(request_rec *r)
name = ((const char**)trusted_proxy_headers->elts)[i];

if (!strcmp(name, "HTTP_X_FORWARDED_FOR") ||
!strcmp(name, "HTTP_X_CLIENT_IP") ||
!strcmp(name, "HTTP_X_REAL_IP")) {

match_client_header = 1;
Expand Down

0 comments on commit af3c0c2

Please sign in to comment.