We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c20755 commit 859e475Copy full SHA for 859e475
Ui/Service/SessionControlService_AlternateCredential.cs
@@ -216,8 +216,10 @@ await Execute.OnUIThreadAsync(() =>
216
// set the credential from the raw protocol (for reconnection since the credential may be changed when first connection)
217
if (IoC.Get<GlobalData>().VmItemList.FirstOrDefault(x => x.Id == protocol.Id) is { Server: ProtocolBaseWithAddressPort swap })
218
{
219
- protocol.DisplayName = swap.DisplayName;
220
- protocol.SetCredential(swap.GetCredential());
+ var swap2 = (ProtocolBaseWithAddressPort)swap.Clone();
+ swap2.DecryptToConnectLevel();
221
+ protocol.DisplayName = swap2.DisplayName;
222
+ protocol.SetCredential(swap2.GetCredential());
223
}
224
225
var newCredential = protocol.GetCredential();
0 commit comments