mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +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