41a6c3
--- a/modules/metadata/mod_remoteip.c	2015/06/30 08:36:49	1688398
41a6c3
+++ b/modules/metadata/mod_remoteip.c	2015/06/30 08:40:17	1688399
41a6c3
@@ -255,7 +255,7 @@
41a6c3
     }
41a6c3
     remote = apr_pstrdup(r->pool, remote);
41a6c3
 
41a6c3
-    temp_sa = c->client_addr;
41a6c3
+    temp_sa = r->useragent_addr ? r->useragent_addr : c->client_addr;
41a6c3
 
41a6c3
     while (remote) {
41a6c3