mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 22:13:08 +00:00
Merge pull request #997 from rradillen/DS-2299
DS-2299 useProxies and X-Forwarded-FOR
This commit is contained in:
@@ -216,6 +216,10 @@ public class ElasticSearchLoggerServiceImpl implements ElasticSearchLoggerServic
|
||||
}
|
||||
}
|
||||
|
||||
if (!isUseProxies() && request.getHeader("X-Forwarded-For") != null){
|
||||
log.warn("X-Forwarded-For header detected but useProxies is not enabled. If your dspace is behind a proxy set it to true");
|
||||
}
|
||||
|
||||
XContentBuilder docBuilder = null;
|
||||
|
||||
|
||||
@@ -334,6 +338,10 @@ public class ElasticSearchLoggerServiceImpl implements ElasticSearchLoggerServic
|
||||
}
|
||||
}
|
||||
|
||||
if (!isUseProxies() && xforwardedfor != null){
|
||||
log.warn("X-Forwarded-For header detected but useProxies is not enabled. If your dspace is behind a proxy set it to true");
|
||||
}
|
||||
|
||||
XContentBuilder docBuilder = null;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user