mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-20 13:33:20 +03:00
fix one log
This commit is contained in:
@@ -216,6 +216,8 @@ pub fn core_main() -> Option<Vec<String>> {
|
|||||||
if args.len() == 2 {
|
if args.len() == 2 {
|
||||||
if crate::platform::is_root() {
|
if crate::platform::is_root() {
|
||||||
crate::ipc::set_permanent_password(args[1].to_owned()).unwrap();
|
crate::ipc::set_permanent_password(args[1].to_owned()).unwrap();
|
||||||
|
} else {
|
||||||
|
println!("Administrative privileges required!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return None;
|
return None;
|
||||||
|
|||||||
Reference in New Issue
Block a user