add password to --connect command in flutter, --connect id [passord]

This commit is contained in:
rustdesk
2023-03-20 00:16:06 +08:00
parent 7009d4fa7b
commit 4d827708c3
7 changed files with 35 additions and 15 deletions

View File

@@ -87,6 +87,7 @@ pub fn session_add_sync(
is_port_forward: bool,
switch_uuid: String,
force_relay: bool,
password: String,
) -> SyncReturn<String> {
if let Err(e) = session_add(
&id,
@@ -94,6 +95,7 @@ pub fn session_add_sync(
is_port_forward,
&switch_uuid,
force_relay,
password,
) {
SyncReturn(format!("Failed to add session with id {}, {}", &id, e))
} else {