From e06830ce0b81d214f3190a16ad6c3a8411efd712 Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Mon, 22 Dec 2025 14:03:02 +0800 Subject: [PATCH] fix: update macOS app to use correct API port (52415) Fixes #960 The macOS app was incorrectly using port 8000 instead of the default exo API port 52415. This caused confusion as the README correctly documents port 52415 but the app was connecting to a different port. --- app/EXO/EXO/ContentView.swift | 2 +- app/EXO/EXO/Services/BugReportService.swift | 2 +- app/EXO/EXO/Services/ClusterStateService.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/EXO/EXO/ContentView.swift b/app/EXO/EXO/ContentView.swift index 774b2b09..7e6372e0 100644 --- a/app/EXO/EXO/ContentView.swift +++ b/app/EXO/EXO/ContentView.swift @@ -212,7 +212,7 @@ struct ContentView: View { private var dashboardButton: some View { Button { - guard let url = URL(string: "http://localhost:8000/") else { return } + guard let url = URL(string: "http://localhost:52415/") else { return } NSWorkspace.shared.open(url) } label: { HStack { diff --git a/app/EXO/EXO/Services/BugReportService.swift b/app/EXO/EXO/Services/BugReportService.swift index 99f55e57..a1852c6b 100644 --- a/app/EXO/EXO/Services/BugReportService.swift +++ b/app/EXO/EXO/Services/BugReportService.swift @@ -35,7 +35,7 @@ struct BugReportService { } func sendReport( - baseURL: URL = URL(string: "http://127.0.0.1:8000")!, + baseURL: URL = URL(string: "http://127.0.0.1:52415")!, now: Date = Date(), isManual: Bool = false ) async throws -> BugReportOutcome { diff --git a/app/EXO/EXO/Services/ClusterStateService.swift b/app/EXO/EXO/Services/ClusterStateService.swift index c6a35f92..dddbff4b 100644 --- a/app/EXO/EXO/Services/ClusterStateService.swift +++ b/app/EXO/EXO/Services/ClusterStateService.swift @@ -15,7 +15,7 @@ final class ClusterStateService: ObservableObject { private let endpoint: URL init( - baseURL: URL = URL(string: "http://127.0.0.1:8000")!, + baseURL: URL = URL(string: "http://127.0.0.1:52415")!, session: URLSession = .shared ) { self.baseURL = baseURL