mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Automatically attach tunnel.
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user