mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
fix #6198
This commit is contained in:
1 parent
679a026e72
commit
d7e8d4d5c3
64 files changed
+1193
-1082
No files matched your search
+2
-2
@@ -1256,9 +1256,9 @@ async fn check_id(
|
||||
}
|
||||
|
||||
// if it's relay id, return id processed, otherwise return original id
|
||||
pub fn handle_relay_id(id: String) -> String {
|
||||
pub fn handle_relay_id(id: &str) -> &str {
|
||||
if id.ends_with(r"\r") || id.ends_with(r"/r") {
|
||||
id[0..id.len() - 2].to_string()
|
||||
&id[0..id.len() - 2]
|
||||
} else {
|
||||
id
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user