projects
/
opensrf-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
LP#1684970 Translator compatible with mod_remoteip
[opensrf-equinox.git]
/
src
/
gateway
/
osrf_http_translator.c
diff --git
a/src/gateway/osrf_http_translator.c
b/src/gateway/osrf_http_translator.c
index
789aaae
..
ec8a685
100644
(file)
--- a/
src/gateway/osrf_http_translator.c
+++ b/
src/gateway/osrf_http_translator.c
@@
-119,7
+119,7
@@
static osrfHttpTranslator* osrfNewHttpTranslator(request_rec* apreq) {
trans->connecting = 0;
trans->disconnecting = 0;
#ifdef APACHE_MIN_24
- trans->remoteHost = apreq->connection->client_ip;
+ trans->remoteHost = apreq->useragent_ip;
#else
trans->remoteHost = apreq->connection->remote_ip;
#endif