httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1209814 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Sat, 03 Dec 2011 01:09:00 GMT
Author: minfrin
Date: Sat Dec  3 01:08:59 2011
New Revision: 1209814

URL: http://svn.apache.org/viewvc?rev=1209814&view=rev
Log:
mod_proxy: Make sure we populate the client IP from the peer IP for proxy
fake requests.

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1209814&r1=1209813&r2=1209814&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sat Dec  3 01:08:59 2011
@@ -382,6 +382,8 @@ PROXY_DECLARE(request_rec *)ap_proxy_mak
     rp->input_filters   = c->input_filters;
     rp->proto_output_filters  = c->output_filters;
     rp->proto_input_filters   = c->input_filters;
+    rp->client_ip = c->peer_ip;
+    rp->client_addr = c->peer_addr;
 
     rp->request_config  = ap_create_request_config(pool);
     proxy_run_create_req(r, rp);



Mime
View raw message