mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-17 04:01:29 +03:00
sciter/mobile id suffix "\r" or "/r" for relay
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -62,12 +62,15 @@ function createNewConnect(id, type) {
|
||||
id = id.replace(/\s/g, "");
|
||||
app.remote_id.value = formatId(id);
|
||||
if (!id) return;
|
||||
var old_id = id;
|
||||
id = handler.handle_relay_id(id);
|
||||
var force_relay = old_id != id;
|
||||
if (id == my_id) {
|
||||
msgbox("custom-error", "Error", "You cannot connect to your own computer");
|
||||
return;
|
||||
}
|
||||
handler.set_remote_id(id);
|
||||
handler.new_remote(id, type);
|
||||
handler.new_remote(id, type, force_relay);
|
||||
}
|
||||
|
||||
class ShareRdp: Reactor.Component {
|
||||
|
||||
Reference in New Issue
Block a user