mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective IP address of the request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -188,7 +188,7 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r,
|
||||
else if (strcEQ(var, "REQUEST_FILENAME"))
|
||||
result = r->filename;
|
||||
else if (strcEQ(var, "REMOTE_ADDR"))
|
||||
result = r->remote_ip;
|
||||
result = r->client_ip;
|
||||
else if (strcEQ(var, "REMOTE_HOST"))
|
||||
result = ap_get_remote_host(r->connection, r->per_dir_config,
|
||||
REMOTE_NAME, NULL);
|
||||
|
Reference in New Issue
Block a user