mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-422: Add timezone to tunnel connections.
This commit is contained in:
committed by
Virtually Nick
parent
8ad65d6e6c
commit
047ed7ac9c
@@ -476,6 +476,15 @@ public abstract class AbstractGuacamoleTunnelService implements GuacamoleTunnelS
|
||||
activeConnections.put(connection.getIdentifier(), activeConnection);
|
||||
activeConnectionGroups.put(connection.getParentIdentifier(), activeConnection);
|
||||
config = getGuacamoleConfiguration(activeConnection.getUser(), connection);
|
||||
|
||||
// If timezone is provided by tunnel parameter, and not
|
||||
// overriden by connection parameter, set it.
|
||||
String tzTunnel = info.getTimezone();
|
||||
String tzParam = config.getParameter("timezone");
|
||||
if ((tzParam == null || tzParam.isEmpty())
|
||||
&& tzTunnel != null && !tzTunnel.isEmpty())
|
||||
config.setParameter("timezone", tzTunnel);
|
||||
|
||||
}
|
||||
|
||||
// If we ARE joining an active connection, generate a configuration
|
||||
|
Reference in New Issue
Block a user