httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1730127 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Fri, 12 Feb 2016 22:05:25 GMT
Author: wrowe
Date: Fri Feb 12 22:05:24 2016
New Revision: 1730127

URL: http://svn.apache.org/viewvc?rev=1730127&view=rev
Log:
Sync mod_rewrite REMOTE_HOST to newbehavior (REMOTE_ADDR is useragent_ip)

Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1730127&r1=1730126&r2=1730127&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Fri Feb 12 22:05:24 2016
@@ -2067,8 +2067,7 @@ static char *lookup_variable(char *var,
                     return apr_psprintf(r->pool, "%u", ap_get_server_port(r));
                 }
                 else if (var[7] == 'H' && !strcmp(var, "REMOTE_HOST")) {
-                    result = ap_get_remote_host(r->connection,r->per_dir_config,
-                                                REMOTE_NAME, NULL);
+                    result = ap_get_useragent_host(r, REMOTE_NAME, NULL);
                 }
                 else if (!strcmp(var, "REMOTE_PORT")) {
                     return apr_itoa(r->pool, r->useragent_addr->port);



Mime
View raw message