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