mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-31 14:11:45 +08:00
feat: 新增 MJPEG/H.264 VNC 初步支持
This commit is contained in:
@@ -12,6 +12,7 @@ mod rtsp;
|
||||
mod rustdesk;
|
||||
mod stream;
|
||||
pub(crate) mod video;
|
||||
mod vnc;
|
||||
mod web;
|
||||
|
||||
pub use atx::{get_atx_config, update_atx_config};
|
||||
@@ -31,6 +32,9 @@ pub use rustdesk::{
|
||||
};
|
||||
pub use stream::{get_stream_config, update_stream_config};
|
||||
pub use video::{get_video_config, update_video_config};
|
||||
pub use vnc::{
|
||||
get_vnc_config, get_vnc_status, start_vnc_service, stop_vnc_service, update_vnc_config,
|
||||
};
|
||||
pub use web::{get_web_config, update_web_config};
|
||||
|
||||
use axum::{extract::State, Json};
|
||||
@@ -52,6 +56,7 @@ fn sanitize_config_for_api(config: &mut AppConfig) {
|
||||
config.rustdesk.signing_private_key = None;
|
||||
|
||||
config.rtsp.password = None;
|
||||
config.vnc.password = None;
|
||||
}
|
||||
|
||||
pub async fn get_all_config(State(state): State<Arc<AppState>>) -> Json<AppConfig> {
|
||||
|
||||
Reference in New Issue
Block a user