mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 20:21:27 +03:00
prepare no-register-device
This commit is contained in:
@@ -454,7 +454,9 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
}
|
||||
return None;
|
||||
} else if args[0] == "--assign" {
|
||||
if crate::platform::is_installed() && is_root() {
|
||||
if config::Config::no_register_device() {
|
||||
println!("Cannot assign an unregistrable device!");
|
||||
} else if crate::platform::is_installed() && is_root() {
|
||||
let max = args.len() - 1;
|
||||
let pos = args.iter().position(|x| x == "--token").unwrap_or(max);
|
||||
if pos < max {
|
||||
|
||||
Reference in New Issue
Block a user