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/aaa/mod_authz_host.c | |
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/aaa/mod_authz_host.c')
-rw-r--r-- | modules/aaa/mod_authz_host.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/aaa/mod_authz_host.c b/modules/aaa/mod_authz_host.c index c7bbbe015d..15f453996e 100644 --- a/modules/aaa/mod_authz_host.c +++ b/modules/aaa/mod_authz_host.c @@ -169,10 +169,7 @@ static authz_status host_check_authorization(request_rec *r, const char *remotehost = NULL; int remotehost_is_ip; - remotehost = ap_get_remote_host(r->connection, - r->per_dir_config, - REMOTE_DOUBLE_REV, - &remotehost_is_ip); + remotehost = ap_get_useragent_host(r, REMOTE_DOUBLE_REV, &remotehost_is_ip); if ((remotehost == NULL) || remotehost_is_ip) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01753) |