Ver Fonte

fix(desktop): correct health check endpoint URL to /global/health (#8231)

usvimal há 1 mês atrás
pai
commit
2b77a84c4f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/desktop/src-tauri/src/lib.rs

+ 1 - 1
packages/desktop/src-tauri/src/lib.rs

@@ -198,7 +198,7 @@ fn spawn_sidecar(app: &AppHandle, port: u32, password: &str) -> CommandChild {
 }
 }
 
 
 async fn check_server_health(url: &str, password: Option<&str>) -> bool {
 async fn check_server_health(url: &str, password: Option<&str>) -> bool {
-    let health_url = format!("{}/health", url.trim_end_matches('/'));
+    let health_url = format!("{}/global/health", url.trim_end_matches('/'));
     let client = reqwest::Client::builder()
     let client = reqwest::Client::builder()
         .timeout(Duration::from_secs(3))
         .timeout(Duration::from_secs(3))
         .build();
         .build();