diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2016-02-12 02:17:03 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2016-02-12 02:17:03 +0100 |
commit | 690c6105f9e66cb3a8a8b03344f64b2cf00d83e9 (patch) | |
tree | 3820b5b01d6510e9d6535733685443307fbadf09 /modules/arch | |
parent | Introduce an ap_get_useragent_host() accessor to replace the old (diff) | |
download | apache2-690c6105f9e66cb3a8a8b03344f64b2cf00d83e9.tar.xz apache2-690c6105f9e66cb3a8a8b03344f64b2cf00d83e9.zip |
hostname: Test and log useragent_host per-request across various modules,
including the scoreboard, expression and rewrite engines, setenvif,
authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables.
PR55348 [William Rowe]
This is the complete change set which applies cleanly to 2.4.x as well,
the server/scoreboard.c will follow, which does not apply due to drift.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r-- | modules/arch/netware/mod_nw_ssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index 8e392a7f01..fc8af9889e 100644 --- a/modules/arch/netware/mod_nw_ssl.c +++ b/modules/arch/netware/mod_nw_ssl.c @@ -1020,8 +1020,7 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, else if (strcEQ(var, "REMOTE_ADDR")) result = r->useragent_ip; else if (strcEQ(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 (strcEQ(var, "REMOTE_IDENT")) result = ap_get_remote_logname(r); else if (strcEQ(var, "REMOTE_USER")) |