GUACAMOLE-524: 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.

This commit is contained in:
Michael Jumper
2018-10-16 13:23:55 -07:00
parent 333a8c411f
commit 143c10b6ef

View File

@@ -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;