mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-21 20:21:09 +03:00
Allow configuring remote control permissions for different users (#13974)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -772,7 +772,14 @@ impl<T: InvokeUiCM> IpcTaskRunner<T> {
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
pub async fn start_ipc<T: InvokeUiCM>(cm: ConnectionManager<T>) {
|
||||
#[cfg(target_os = "windows")]
|
||||
ContextSend::enable(crate::Connection::permission(OPTION_ENABLE_FILE_TRANSFER));
|
||||
{
|
||||
let enabled = crate::Connection::is_permission_enabled_locally(OPTION_ENABLE_FILE_TRANSFER);
|
||||
let mut lock = crate::ui_interface::IS_FILE_TRANSFER_ENABLED
|
||||
.lock()
|
||||
.unwrap();
|
||||
ContextSend::enable(enabled);
|
||||
*lock = Some(enabled);
|
||||
}
|
||||
match ipc::new_listener("_cm").await {
|
||||
Ok(mut incoming) => {
|
||||
while let Some(result) = incoming.next().await {
|
||||
|
||||
Reference in New Issue
Block a user