mirror of
https://github.com/apache/httpd.git
synced 2026-01-13 21:42:17 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user