From 45dbea57f1c509875e4340254eeb252c657e15a1 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 9 Nov 2023 21:58:03 +0800 Subject: [PATCH] allow /r in command line --- src/client.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client.rs b/src/client.rs index 14d0e62c4..e4447093c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1166,6 +1166,12 @@ impl LoginConfigHandler { } self.other_server = Some((real_id.clone(), server.to_owned(), key.to_owned())); id = format!("{real_id}@{server}"); + } else { + let real_id = crate::ui_interface::handle_relay_id(&id); + if real_id != id { + force_relay = true; + id = real_id.to_owned(); + } } self.id = id;