Automatically attach tunnel.

This commit is contained in:
Michael Jumper
2012-03-23 16:03:36 -07:00
parent f084f7fbea
commit fa10dba566

View File

@@ -96,6 +96,13 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
GuacamoleTunnel tunnel = doConnect(request); GuacamoleTunnel tunnel = doConnect(request);
if (tunnel != null) { if (tunnel != null) {
// Get session
HttpSession httpSession = request.getSession(true);
GuacamoleSession session = new GuacamoleSession(httpSession);
// Attach tunnel to session
session.attachTunnel(tunnel);
logger.info("Connection from {} succeeded.", request.getRemoteAddr()); logger.info("Connection from {} succeeded.", request.getRemoteAddr());
try { try {