diff options
author | Mike Rumph <mrumph@apache.org> | 2014-02-04 20:38:01 +0000 |
---|---|---|
committer | Mike Rumph <mrumph@apache.org> | 2014-02-04 20:38:01 +0000 |
commit | 18dedf6db56258a81a37c1a76c1c44faf01578e5 (patch) | |
tree | b51357fa650af56d79b8063cfd251c1ebab133b4 /modules/metadata | |
parent | 8bc702299bae2549fcff7ca8a26852524dc8ffe2 (diff) | |
download | httpd-18dedf6db56258a81a37c1a76c1c44faf01578e5.tar.gz |
Use the correct IP addresses to populate the proxy_ips field
in mod_remoteip.c. PR 55972.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564475 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata')
-rw-r--r-- | modules/metadata/mod_remoteip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/metadata/mod_remoteip.c b/modules/metadata/mod_remoteip.c index 079fb1f17d..61087590ec 100644 --- a/modules/metadata/mod_remoteip.c +++ b/modules/metadata/mod_remoteip.c @@ -352,16 +352,17 @@ static int remoteip_modify_request(request_rec *r) /* save away our results */ if (!req) { req = (remoteip_req_t *) apr_palloc(r->pool, sizeof(remoteip_req_t)); + req->useragent_ip = r->useragent_ip; } /* Set useragent_ip string */ if (!internal) { if (proxy_ips) { proxy_ips = apr_pstrcat(r->pool, proxy_ips, ", ", - c->client_ip, NULL); + req->useragent_ip, NULL); } else { - proxy_ips = c->client_ip; + proxy_ips = req->useragent_ip; } } |