mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-22 08:32:11 +00:00
parent
5a4efa9d15
commit
3706268bf9
@ -65,17 +65,7 @@ extension Utils {
|
||||
#if targetEnvironment(simulator)
|
||||
["My Home Network", "Safe Wi-Fi", "Friend's House"].randomElement()
|
||||
#elseif os(iOS)
|
||||
await withCheckedContinuation { continuation in
|
||||
NEHotspotNetwork.fetchCurrent {
|
||||
guard let network = $0 else {
|
||||
continuation.resume(with: .success(nil))
|
||||
return
|
||||
}
|
||||
continuation.resume(with: .success(network.ssid))
|
||||
}
|
||||
}
|
||||
#elseif os(macOS)
|
||||
CWWiFiClient.shared().interface()?.ssid()
|
||||
await NEHotspotNetwork.fetchCurrent()?.ssid
|
||||
#else
|
||||
nil
|
||||
#endif
|
||||
|
@ -32,10 +32,6 @@
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
<key>com.apple.security.personal-information.location</key>
|
||||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
||||
|
@ -14,8 +14,6 @@
|
||||
</array>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(CFG_KEYCHAIN_GROUP_ID)</string>
|
||||
|
Loading…
Reference in New Issue
Block a user