mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
refactor(rustdesk): 移除密钥对状态展示
This commit is contained in:
@@ -63,7 +63,6 @@ pub struct RustDeskConfigResponse {
|
||||
pub relay_server: Option<String>,
|
||||
pub device_id: String,
|
||||
pub has_password: bool,
|
||||
pub has_keypair: bool,
|
||||
pub relay_key: Option<String>,
|
||||
}
|
||||
|
||||
@@ -78,7 +77,6 @@ impl From<&RustDeskConfig> for RustDeskConfigResponse {
|
||||
relay_server: config.relay_server.clone(),
|
||||
device_id: config.device_id.clone(),
|
||||
has_password: !config.device_password.is_empty(),
|
||||
has_keypair: config.public_key.is_some() && config.private_key.is_some(),
|
||||
relay_key: config.relay_key.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user