]> granicus.if.org Git - apache/commitdiff
mod_proxy: Make sure we populate the client IP from the peer IP for proxy
authorGraham Leggett <minfrin@apache.org>
Sat, 3 Dec 2011 01:08:59 +0000 (01:08 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 3 Dec 2011 01:08:59 +0000 (01:08 +0000)
fake requests.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209814 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index bd25aa79b577989a92fd565700ef0fb41ad8ec11..9ac5387087e209a23b7ad32e12ac6cb2fb3394d7 100644 (file)
@@ -382,6 +382,8 @@ PROXY_DECLARE(request_rec *)ap_proxy_make_fake_req(conn_rec *c, request_rec *r)
     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);