altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1569006.patch

0943f8
--- a/modules/metadata/mod_remoteip.c	2014/02/17 14:11:38	1569005
0943f8
+++ b/modules/metadata/mod_remoteip.c	2014/02/17 14:12:30	1569006
0943f8
@@ -246,14 +246,14 @@
0943f8
 
0943f8
     while (remote) {
0943f8
 
0943f8
-        /* verify c->client_addr is trusted if there is a trusted proxy list
0943f8
+        /* verify user agent IP against the trusted proxy list
0943f8
          */
0943f8
         if (config->proxymatch_ip) {
0943f8
             int i;
0943f8
             remoteip_proxymatch_t *match;
0943f8
             match = (remoteip_proxymatch_t *)config->proxymatch_ip->elts;
0943f8
             for (i = 0; i < config->proxymatch_ip->nelts; ++i) {
0943f8
-                if (apr_ipsubnet_test(match[i].ip, c->client_addr)) {
0943f8
+                if (apr_ipsubnet_test(match[i].ip, temp_sa)) {
0943f8
                     internal = match[i].internal;
0943f8
                     break;
0943f8
                 }