fix: build front cannot find IvergeConfig.enable_lite_mode and macos port switching causes crash (#2691)

* fix: macos switch protocol port or enable protocol port causes crash

* fix: build time front cannot find IVergeConfig attribute enable_lite_mode
This commit is contained in:
Tunglies
2025-02-13 10:14:13 +08:00
committed by GitHub
parent 3b0635e8a1
commit bdb178d893
3 changed files with 8 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ impl CoreManager {
/// 启动核心
pub async fn start_core(&self) -> Result<()> {
#[cfg(not(target_os = "macos"))]
// 检查端口占用
self.health_checker.check_ports().await?;