mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Revert "CLOUDSTACK-5033: set origin ip address in logs if management servers is behind a reverse proxy or load balancer"
This reverts commit 5cc47f77c5d7c1c8c40c5e7cb2f7083fd2ce56cd.
This commit is contained in:
parent
6ab27267be
commit
abd4a826e9
@ -121,13 +121,7 @@ public class ApiServlet extends HttpServlet {
|
||||
|
||||
private void processRequestInContext(HttpServletRequest req, HttpServletResponse resp) {
|
||||
StringBuffer auditTrailSb = new StringBuffer();
|
||||
String ipAddress = req.getHeader("X-FORWARDED-FOR");
|
||||
if (ipAddress == null) {
|
||||
ipAddress = req.getRemoteAddr();
|
||||
} else {
|
||||
ipAddress = ipAddress.split(",")[0];
|
||||
}
|
||||
auditTrailSb.append(" " + ipAddress);
|
||||
auditTrailSb.append(" " + req.getRemoteAddr());
|
||||
auditTrailSb.append(" -- " + req.getMethod() + " ");
|
||||
// get the response format since we'll need it in a couple of places
|
||||
String responseType = BaseCmd.RESPONSE_TYPE_XML;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user