mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 14:31:28 +03:00
sciter/mobile id suffix "\r" or "/r" for relay
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -462,6 +462,7 @@ impl sciter::EventHandler for SciterSession {
|
||||
|
||||
impl SciterSession {
|
||||
pub fn new(cmd: String, id: String, password: String, args: Vec<String>) -> Self {
|
||||
let force_relay = args.contains(&"--relay".to_string());
|
||||
let session: Session<SciterHandler> = Session {
|
||||
id: id.clone(),
|
||||
password: password.clone(),
|
||||
@@ -486,7 +487,7 @@ impl SciterSession {
|
||||
.lc
|
||||
.write()
|
||||
.unwrap()
|
||||
.initialize(id, conn_type, None, false);
|
||||
.initialize(id, conn_type, None, force_relay);
|
||||
|
||||
Self(session)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user