mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-16 13:05:47 +00:00
fix #6198
This commit is contained in:
@@ -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