mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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);
|
getUnconfiguredGuacamoleSocket(cleanupTask), config, info);
|
||||||
|
|
||||||
// Assign and return new tunnel
|
// 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.
|
* given socket.
|
||||||
*
|
*
|
||||||
* @param socket
|
* @param socket
|
||||||
* The ConfiguredGuacamoleSocket to use to create the tunnel associated
|
* The GuacamoleSocket to use to create the tunnel associated with this
|
||||||
* with this connection record.
|
* connection record.
|
||||||
|
*
|
||||||
|
* @param connectionID
|
||||||
|
* The connection ID assigned to this connection by guacd.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* The newly-created tunnel associated with this connection record.
|
* 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
|
// Create tunnel with given socket
|
||||||
this.tunnel = new AbstractGuacamoleTunnel() {
|
this.tunnel = new AbstractGuacamoleTunnel() {
|
||||||
@@ -391,7 +395,7 @@ public class ActiveConnectionRecord implements ConnectionRecord {
|
|||||||
|
|
||||||
// Store connection ID of the primary connection only
|
// Store connection ID of the primary connection only
|
||||||
if (isPrimaryConnection())
|
if (isPrimaryConnection())
|
||||||
this.connectionID = socket.getConnectionID();
|
this.connectionID = connectionID;
|
||||||
|
|
||||||
// Return newly-created tunnel
|
// Return newly-created tunnel
|
||||||
return this.tunnel;
|
return this.tunnel;
|
||||||
|
Reference in New Issue
Block a user