From 4ee7eea4cf60fad5fca9fe9c39d306ae870b5907 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Tue, 22 Nov 2011 13:10:39 +0000 Subject: Introduce a per request version of the remote IP address, which can be optionally modified by a module when the effective IP of the client is not the same as the real IP of the client (such as a load balancer). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204968 13f79535-47bb-0310-9956-ffa450edef68 --- include/httpd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/httpd.h b/include/httpd.h index 39d10e1c4c..c56a88b5b2 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1003,6 +1003,12 @@ struct request_rec { apr_uri_t parsed_uri; /** finfo.protection (st_mode) set to zero if no such file */ apr_finfo_t finfo; + + /** remote address information from conn_rec, can be overridden if + * necessary by a module. + */ + apr_sockaddr_t *remote_addr; + char *remote_ip; }; /** -- cgit v1.2.3