mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
log message if useProxies is disabled and X-Forwarded-For is set
This commit is contained in:
@@ -212,6 +212,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;
|
||||
|
||||
|
||||
@@ -330,6 +334,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