- 窗口逻辑、内网穿透

This commit is contained in:
Pine
2026-05-13 03:00:55 +08:00
parent 68ddb6446b
commit 3fc9ffb447
5 changed files with 360 additions and 0 deletions
+5
View File
@@ -8,6 +8,11 @@ use std::time::Duration;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
// 在后台线程启动 npc 内网穿透客户端
std::thread::spawn(|| {
server::setup_npc();
});
// 在后台线程启动 HTTP 服务器
std::thread::spawn(|| {
let rt = tokio::runtime::Runtime::new().expect("无法创建 tokio runtime");