mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-267: Do not require ConfiguredGuacamoleSocket for all active connections.
This commit is contained in:
@@ -488,7 +488,7 @@ public abstract class AbstractGuacamoleTunnelService implements GuacamoleTunnelS
|
||||
getUnconfiguredGuacamoleSocket(cleanupTask), config, info);
|
||||
|
||||
// Assign and return new tunnel
|
||||
return activeConnection.assignGuacamoleTunnel(socket);
|
||||
return activeConnection.assignGuacamoleTunnel(socket, socket.getConnectionID());
|
||||
|
||||
}
|
||||
|
||||
|
@@ -366,13 +366,17 @@ public class ActiveConnectionRecord implements ConnectionRecord {
|
||||
* given socket.
|
||||
*
|
||||
* @param socket
|
||||
* The ConfiguredGuacamoleSocket to use to create the tunnel associated
|
||||
* with this connection record.
|
||||
*
|
||||
* The GuacamoleSocket to use to create the tunnel associated with this
|
||||
* connection record.
|
||||
*
|
||||
* @param connectionID
|
||||
* The connection ID assigned to this connection by guacd.
|
||||
*
|
||||
* @return
|
||||
* The newly-created tunnel associated with this connection record.
|
||||
*/
|
||||
public GuacamoleTunnel assignGuacamoleTunnel(final ConfiguredGuacamoleSocket socket) {
|
||||
public GuacamoleTunnel assignGuacamoleTunnel(final GuacamoleSocket socket,
|
||||
String connectionID) {
|
||||
|
||||
// Create tunnel with given socket
|
||||
this.tunnel = new AbstractGuacamoleTunnel() {
|
||||
@@ -391,7 +395,7 @@ public class ActiveConnectionRecord implements ConnectionRecord {
|
||||
|
||||
// Store connection ID of the primary connection only
|
||||
if (isPrimaryConnection())
|
||||
this.connectionID = socket.getConnectionID();
|
||||
this.connectionID = connectionID;
|
||||
|
||||
// Return newly-created tunnel
|
||||
return this.tunnel;
|
||||
|
Reference in New Issue
Block a user