GUAC-907: Log source address, using X-Forwarded-For if available (after validation).

This commit is contained in:
Michael Jumper
2014-10-27 15:36:08 -07:00
parent 713ecaae2a
commit c20adb46a9
3 changed files with 52 additions and 10 deletions

View File

@@ -161,8 +161,6 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
// Attach tunnel to session
session.attachTunnel(tunnel);
logger.info("Connection from {} succeeded.", request.getRemoteAddr());
try {
// Ensure buggy browsers do not cache response
response.setHeader("Cache-Control", "no-cache");
@@ -177,10 +175,8 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
}
// Failed to connect
else {
logger.info("Connection from {} failed.", request.getRemoteAddr());
else
throw new GuacamoleResourceNotFoundException("No tunnel created.");
}
}