Correct handling of tokens within SimpleConnection. The copy of the configuration should be filtered, not the original, and token values need to actually be set.
@@ -113,8 +113,7 @@ public class SimpleConnection extends AbstractConnection {
// Apply tokens to config parameters
GuacamoleConfiguration filteredConfig = new GuacamoleConfiguration(config);
- TokenFilter tokenFilter = new TokenFilter();
- tokenFilter.filterValues(config.getParameters());
+ new TokenFilter(tokens).filterValues(filteredConfig.getParameters());
GuacamoleSocket socket;
