From 7d88e471709c13dc4df388a73b3824901c9fef09 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 5 May 2020 18:40:42 +0200 Subject: Prevent user from sticking to connection if it was reset. Make a copy of the AvailableConnection for the ConnectionWrapper, so we don't update the password for the already active connection, if it changes, which defeats the purpose of this mechanism altogether. --- src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java') diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java b/src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java index 616c20c..3d46e73 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/WrappedConnection.java @@ -11,7 +11,7 @@ public class WrappedConnection extends SimpleConnection { public WrappedConnection(String name, AvailableClient ac) { super(name, name, makeConfig(ac)); - this.ac = ac; + this.ac = ac.clone(); setParentIdentifier(DEFAULT_ROOT_CONNECTION_GROUP); } -- cgit v1.2.3-55-g7522