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 --- modules/arch/netware/mod_nw_ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/arch/netware/mod_nw_ssl.c') diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index 7b64ebfa2f..ce7a4171a5 100644 --- a/modules/arch/netware/mod_nw_ssl.c +++ b/modules/arch/netware/mod_nw_ssl.c @@ -1000,6 +1000,8 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, result = r->uri; else if (strcEQ(var, "REQUEST_FILENAME")) result = r->filename; + else if (strcEQ(var, "REMOTE_ADDR")) + result = r->remote_ip; else if (strcEQ(var, "REMOTE_HOST")) result = ap_get_remote_host(r->connection, r->per_dir_config, REMOTE_NAME, NULL); @@ -1055,8 +1057,6 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, if (strlen(var) > 4 && strcEQn(var, "SSL_", 4)) result = NULL; - else if (strcEQ(var, "REMOTE_ADDR")) - result = c->remote_ip; } /* -- cgit v1.2.3