知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
fix: a server on the local network that can't be reached no longer gets advice to turn on a proxy
wquguru73c04579518e
diff --git a/Sources/Cicada/AICheck.swift b/Sources/Cicada/AICheck.swiftindex f4167aa..ebf6d79 100644--- a/Sources/Cicada/AICheck.swift+++ b/Sources/Cicada/AICheck.swift@@ -228,7 +228,8 @@ struct AICheck: Equatable {/// The proxy line under "can't reach": what this Mac's proxy looks like, and what to do.func proxyLine(service: String, host: String) -> String? {- guard failure?.reason == .unreachable, let proxy else { return nil }+ // A server on this Mac or the local network: a proxy has nothing to do with it.+ guard failure?.reason == .unreachable, let proxy, !AIProvider.isNearby(host) else { return nil }switch proxy {case .systemOn: return L("开了代理也连不上:换一个节点,或检查代理软件是否放过 \(host)。")// As text: a number would be grouped ("7,890").diff --git a/Sources/Cicada/AICheckView.swift b/Sources/Cicada/AICheckView.swiftindex 6acfebc..4183955 100644--- a/Sources/Cicada/AICheckView.swift+++ b/Sources/Cicada/AICheckView.swift@@ -86,6 +86,8 @@ struct AICheckSteps: View {let recheck = recheckInStep ? [Action(title: L("重新检查")) { Task { await ling.check() } }] : []switch f.reason {case .unreachable:+ // A proxy has nothing to do with a server on this Mac or the local network.+ if AIProvider.isNearby(host) { return recheck }return [Action(title: L("怎么设置代理")) { NSWorkspace.shared.open(ProxyProbe.helpURL) }] + recheckcase .invalidKey, .mgmtKey:var a = [Action(title: L("更换 key"), run: changeKey)]