summaryrefslogtreecommitdiffstats
path: root/modules/mappers/mod_rewrite.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2016-02-12 23:05:24 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2016-02-12 23:05:24 +0100
commit87eed91ad1139e1063fc786ec63bafa0f086fd4f (patch)
treef61521c689dc678c07f4c11b3e1ac8c62416648a /modules/mappers/mod_rewrite.c
parentUse different variables to track normal (diff)
downloadapache2-87eed91ad1139e1063fc786ec63bafa0f086fd4f.tar.xz
apache2-87eed91ad1139e1063fc786ec63bafa0f086fd4f.zip
Sync mod_rewrite REMOTE_HOST to newbehavior (REMOTE_ADDR is useragent_ip)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1730127 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_rewrite.c')
-rw-r--r--modules/mappers/mod_rewrite.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c
index 648958ef45..1fb4d163f9 100644
--- a/modules/mappers/mod_rewrite.c
+++ b/modules/mappers/mod_rewrite.c
@@ -2067,8 +2067,7 @@ static char *lookup_variable(char *var, rewrite_ctx *ctx)
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);