From: Graham Leggett Date: Sat, 3 Dec 2011 01:08:59 +0000 (+0000) Subject: mod_proxy: Make sure we populate the client IP from the peer IP for proxy X-Git-Tag: 2.5.0-alpha~7741 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a7b79088bfc4fa6f6b103738b06c2368569a8b9;p=apache mod_proxy: Make sure we populate the client IP from the peer IP for proxy fake requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209814 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index bd25aa79b5..9ac5387087 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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);