mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 16:21:45 +08:00
feat: 新增安卓平台支持
This commit is contained in:
@@ -415,7 +415,7 @@ pub async fn apply_rustdesk_config(
|
||||
let mut rustdesk_guard = state.rustdesk.write().await;
|
||||
let mut credentials_to_save = None;
|
||||
|
||||
if old_config.enabled && !new_config.enabled {
|
||||
if !new_config.enabled {
|
||||
if let Some(ref service) = *rustdesk_guard {
|
||||
service
|
||||
.stop()
|
||||
@@ -493,7 +493,7 @@ pub async fn apply_rtsp_config(
|
||||
|
||||
let mut rtsp_guard = state.rtsp.write().await;
|
||||
|
||||
if old_config.enabled && !new_config.enabled {
|
||||
if !new_config.enabled {
|
||||
if let Some(ref service) = *rtsp_guard {
|
||||
service
|
||||
.stop()
|
||||
|
||||
@@ -21,10 +21,13 @@ pub use hid::{get_hid_config, update_hid_config};
|
||||
#[cfg(unix)]
|
||||
pub use msd::{get_msd_config, update_msd_config};
|
||||
pub use redfish::{get_redfish_config, update_redfish_config};
|
||||
pub use rtsp::{get_rtsp_config, get_rtsp_status, update_rtsp_config};
|
||||
pub use rtsp::{
|
||||
get_rtsp_config, get_rtsp_status, start_rtsp_service, stop_rtsp_service, update_rtsp_config,
|
||||
};
|
||||
pub use rustdesk::{
|
||||
get_device_password, get_rustdesk_config, get_rustdesk_status, regenerate_device_id,
|
||||
regenerate_device_password, update_rustdesk_config,
|
||||
regenerate_device_password, start_rustdesk_service, stop_rustdesk_service,
|
||||
update_rustdesk_config,
|
||||
};
|
||||
pub use stream::{get_stream_config, update_stream_config};
|
||||
pub use video::{get_video_config, update_video_config};
|
||||
|
||||
Reference in New Issue
Block a user