mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-02 05:52:18 +00:00
Fix on-demand SSID not being added on macOS (#1050)
Skip CoreLocation completely, not entitled.
This commit is contained in:
parent
c232fd18a8
commit
236df80950
@ -34,6 +34,9 @@ public actor CoreLocationWifiObserver: NSObject, WifiObserver {
|
||||
private var continuation: CheckedContinuation<String, Error>?
|
||||
|
||||
public func currentSSID() async throws -> String {
|
||||
#if os(macOS)
|
||||
""
|
||||
#else
|
||||
if let pendingTask {
|
||||
return try await pendingTask.value
|
||||
}
|
||||
@ -56,6 +59,7 @@ public actor CoreLocationWifiObserver: NSObject, WifiObserver {
|
||||
self.pendingTask = nil
|
||||
continuation = nil
|
||||
return result
|
||||
#endif
|
||||
}
|
||||
|
||||
private func currentSSIDWithoutAuthorization() async -> String {
|
||||
|
Loading…
Reference in New Issue
Block a user