]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use the correct IP addresses to populate the proxy_ips field
authorMike Rumph <mrumph@apache.org>
Tue, 4 Feb 2014 20:38:01 +0000 (20:38 +0000)
committerMike Rumph <mrumph@apache.org>
Tue, 4 Feb 2014 20:38:01 +0000 (20:38 +0000)
in mod_remoteip.c.  PR 55972.

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

CHANGES
modules/metadata/mod_remoteip.c

diff --git a/CHANGES b/CHANGES
index 6329fc201e41368f0c82d7d672db28abbcb8303b..9ca834388c5bbe7aa31dce72a13438663c51573b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_remoteip: Use the correct IP addresses to populate the proxy_ips field.
+     PR 55972. [Mike Rumph]
+
   *) mod_proxy: Do not try to parse the regular expressions passed by
      ProxyPassMatch as URL as they do not follow their syntax.
      PR 56074. [Ruediger Pluem]
index 079fb1f17dc307f898b1b5a3e7a3e302407480e1..61087590ec734b8cc813b38ca2cf7f35dca99800 100644 (file)
@@ -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;
             }
         }