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