summaryrefslogtreecommitdiffstats
path: root/modules/arch/netware/mod_nw_ssl.c
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2011-11-22 14:10:39 +0100
committerGraham Leggett <minfrin@apache.org>2011-11-22 14:10:39 +0100
commit4ee7eea4cf60fad5fca9fe9c39d306ae870b5907 (patch)
tree26ad4d77ee36f67a65343a1d5a13cc31ecc458e8 /modules/arch/netware/mod_nw_ssl.c
parentPartial cleanup of trunk STATUS. (diff)
downloadapache2-4ee7eea4cf60fad5fca9fe9c39d306ae870b5907.tar.xz
apache2-4ee7eea4cf60fad5fca9fe9c39d306ae870b5907.zip
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
Diffstat (limited to 'modules/arch/netware/mod_nw_ssl.c')
-rw-r--r--modules/arch/netware/mod_nw_ssl.c4
1 files changed, 2 insertions, 2 deletions
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;
}
/*