mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-907: Log source address, using X-Forwarded-For if available (after validation).
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user