arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1688399.patch

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